powershell
azure-docs
powershell | azure-docs | |
---|---|---|
29 | 89 | |
612 | 10,051 | |
2.5% | 1.0% | |
9.9 | 10.0 | |
6 days ago | 3 days ago | |
C# | Markdown | |
MIT License | Creative Commons Attribution 4.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
powershell
-
“In a Month of Lunches”-Like for Graph for Powershell?
Here is my Module that includes my functions on Azure Extension Properties. It uses the PnP.PowerShellmodule instead of the Graph SDK.
-
Runbook only runs for 3 hours then throws: The process cannot access the file Microsoft.ApplicationInsights.dll' because it is being used by another process.
# Use system-assigned managed identity # https://mmsharepoint.wordpress.com/2023/05/04/authentication-in-azure-automation-with-managed-identity-on-sharepoint-and-microsoft-graph/ # https://pnp.github.io/powershell/articles/azureautomationrunbook.html # Connect to multiple sites # https://github.com/pnp/powershell/issues/1748 # https://robdy.io/multiple-pnp-connections/ # Prod $SourceStr = Get-AutomationVariable -Name 'SharePointSourceFolders' $Target = Get-AutomationVariable -Name 'SharePointTargetFolder' #$SourceList = $SourceStr.Split([System.Environment]::NewLine,[System.StringSplitOptions]::RemoveEmptyEntries) $SourceList = $SourceStr.Split("\n") # Commmon Foreach($Source in $SourceList){ Try{ Write-Output "Source Folder: $Source" #Dev #$SourceSiteConnection = Connect-PnPOnline -Url $SourceSiteURL -Interactive -ReturnConnection #Prod $SourceSiteConnection = Connect-PnPOnline -Url $SourceSiteURL -ManagedIdentity -ReturnConnection #Get the total Size of the folder - with versions $SourceFolder = Get-PnPFolder -Url $Source -Includes ListItemAllFields -Connection $SourceSiteConnection $SourceFolderSize = $([Math]::Round(($SourceFolder.ListItemAllFields.FieldValues.SMTotalSize.LookupId/1KB),2)) Write-Output "Source Folder Size: $Source : $SourceFolderSize" $job = Move-PnPFile -SourceUrl $Source -TargetUrl $Target -NoWait -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination -Force -Connection $SourceSiteConnection $jobStatus = Receive-PnPCopyMoveJobStatus -Job $job -Wait -Connection $SourceSiteConnection if($jobStatus.JobState -eq 0){ Write-Output "Job finished" $jobStatus.JobState $jobStatus.Logs $SourceFolder = Get-PnPFolder -Url $Source -Includes ListItemAllFields -Connection $SourceSiteConnection -ErrorAction SilentlyContinue if($SourceFolder){ Write-Output "Second Try because folder: $SourceFolder.Name remains" $SourceFolderSize = $([Math]::Round(($SourceFolder.ListItemAllFields.FieldValues.SMTotalSize.LookupId/1KB),2)) Write-Output "Second Try Source Folder Size: $Source : $SourceFolderSize" $job = Move-PnPFile -SourceUrl $Source -TargetUrl $Target -NoWait -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination -Force -Connection $SourceSiteConnection $jobStatus = Receive-PnPCopyMoveJobStatus -Job $job -Wait -Connection $SourceSiteConnection if($jobStatus.JobState -eq 0){ Write-Output "Second TryJob finished" $jobStatus.JobState $jobStatus.Logs } else{ Write-Error "Second Try Status: $jobStatus" } } } else{ Write-Error "$jobStatus" } } catch { Write-Error "An error occurred: ${Source}: $_" } # Dispose the connnection variables $SourceSiteConnection = $null Write-Output "Sleep for 2 seconds" Start-Sleep -Milliseconds 2000 }
- Using Batch with Sharepoint Powershell
- PowerShell for OneDrive
-
Access to Another User's OneDrive (GraphAPI and Microsoft.Graph issues)
Reading - https://github.com/pnp/powershell/issues/277
- My boss won’t allow linking our sharepoint site onto file explorer and it’s driving our users insane.
- SharePoint Website in andere Umgebungen verschieben.
-
Error while extracting Sharepoint links with Python
The PnP PowerShell module is the one I would recommend for accessing SharePoint: https://pnp.github.io/powershell/
- Setting up a flow around an.xlsx file located on onedrive, is it dumb?
-
how to sync folders from SharePoint to teams
PnP is the module - it is amazing. The SP cli is a painful (but powerful) nightmare. https://pnp.github.io/powershell/
azure-docs
-
Bare metal restore with MABS: best practices for home lab?
Explained here: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/backup/backup-azure-alternate-dpm-server.md
- Microsoft Account's OAuth tokens leaking via open redirect in Harvest
- Azure Function app has no function after zip deployment
-
Runbook only runs for 3 hours then throws: The process cannot access the file Microsoft.ApplicationInsights.dll' because it is being used by another process.
Official doc on runbook limitations: https://github.com/MicrosoftDocs/azure-docs/blob/main/includes/azure-automation-service-limits.md
-
GitHub repository disabled at 22M commits
I dont think that works:
> git clone --depth 1 https://github.com/MicrosoftDocs/azure-docs
-
Azure monitoring agent with specialized VMs doesn't work
Does anyone have any idea why this is? I found a github issue that basically describes the issue as well but there is no satisfying solution. Can you really not use native azure monitoring solutions if you migrate your VMs to azure? That seems hard to believe and I hope I'm just missing something. I'm very thankful for any advice at this point.
-
Data Factory Webhook activity not invoking API
It appears that there is a 512kb payload limit with runbook webhooks, which I can only find mention of on this git file:https://github.com/MicrosoftDocs/azure-docs/blob/main/includes/azure-automation-service-limits.mdThe data I was including in the web activity body appears to be just under this limit and would trigger the runbook without issue. But with the extra data webhook activities include in the body it puts it over the limit and never triggers it. Unfortunately Data Factory doesn't handle this situation properly and the activity runs indefinitely until you cancel it (despite the timeout configured).The work around for me was to add a foreach activity and put the webhook activity inside of that.
- Azure AKS - Specify VMSS Network Details
- Group Expiration Enabled - All owners were immediately notified
- Max Number of BGP Peers Azure vWAN
What are some alternatives?
Office365-REST-Python-Client - Microsoft 365 & Microsoft Graph Library for Python
httpbin - HTTP Request & Response Service, written in Python + Flask.
smletsexchangeconnector - SMLets PowerShell based Exchange Connector for controlling Microsoft System Center Service Manager 2016+
twitter-lite - A tiny, full-featured, flexible client / server library for the Twitter API
PnP-PowerShell - SharePoint PnP PowerShell CmdLets
twurl - OAuth-enabled curl for the Twitter API
ImportExcel - PowerShell module to import/export Excel spreadsheets, without Excel
cryptogalaxy - Get any cryptocurrencies ticker and trade data in real time from multiple exchanges and then save it in multiple storage systems.
SP-Server-Workflow-Scanner - This workflow scanner mimics the SPO Modernization scanner functionality, in relation to the workflow scan reports. It can be run on SharePoint Server 2013 or 2016 to locate your existing classic workflows and provide information that will help you to prepare for a transformation to alternative solutions such as Power Automate. Developed by the Modern Work team from the Industry Solutions Delivery group at Microsoft.
pam_aad - Azure Active Directory PAM Module
office365-cli - Manage Microsoft 365 and SharePoint Framework projects on any platform [Moved to: https://github.com/pnp/cli-microsoft365]
samples - Azure AD B2C custom policy solutions and samples.