Automating switch between Standard HDD and Premium Disk on VMs
How can we have an automation that changes our VM's disk type to Standard HDD when we turn them off and then changes them to Premium before turning the VM back on? Is there any ready-to-use method available?
![](https://techprofile.blob.core.windows.net/images/ZuCGjNGWaEiWnbswF6AtpA.png?8DA64C)
GPO script logOff is running with elevated permissions, can't run OneDrive correctly.
GPO script logOff is running with elevated permissions, can't run OneDrive correctly (it reports that it is not possible to run as administrator, even though I configured the policy in userconfiguration - windows settings - scripts LogOn\LogOff) How to…
The window closes automatically when connect to Exchange Online with PowerShell
In order to change some of the organization's settings, I entered these commands in PowerShell one after the other. I don't know if there was a successful connection to Exchange Online PowerShell. But as soon as the last command is lost, the PowerShell…
Receiving "The SSL connection could not be established, see inner exception." on all Azure PowerShell cmdlets.
I am receiving the following error, regardless of the Azure PowerShell cmdlet that I am using. Again, it is for all azure cmdlets that I am receiving this SSL error message. My TLS is set to 1.2. About 1 out of every 3 Azure PowerShell cmdlets return…
We cannot join User machine to EntraID
I need help understanding why we cannot join a device to our EntraID? The user has a good password and has EntraID Lic and a Intune Lic. We have used the DSregtool.ps1 and it claims we should be able to join. We have tried using the Settings/Accounts…
When trying to publish linux function app packages using Publish-AzWebApp powershell command it is not uploading.
I tried publishing app multiple times using bellow command on both windows and linux, it was working fine. However, from last few days after migrating function app from dotnet 6 isolated to dotnet 8 isolated it has stopped working for Linux Function App.…
"Set-Mailbox : A parameter cannot be found that matches parameter name 'UserCertificate'" when using Entra Application
Hello, I have a powershell script to do a manual bulk upload of S/MIME certificates to exchange online, but it needs me to authenticate as a domain admin interactively on every run: # Connect to Exchange-Online using your own Credentials Install-Module…
Invoke-command Access denied on Windows 11 but works with Windows 10
I'm trying to connect to a remote computer using Invoke-Command while running an elevated Powershell ise. I recently upgraded to Windows 11 and my scripts no longer work and are giving me an Access is denied error. Here is a test script I've been using…
Automation runbook for start/stop VM using Storage account blob
Hi, I am trying to deploy a powershell runbook in automation account which should read contents of CSV stored in storage account blob using system assigned managed identity of automation account. Looking for a piece of code as I don't want to use sas…
How to fix "403 forbidden" while trying to access MS Graph API during creation of User Flow using PowerShell or Bash in Azure AD B2C Tenant?
Hi all, I need help with API permissions for MS Graph API while creating User Flow using PowerShell. Context: I am trying to create User Flow in Azure AD B2C tenant, but while trying to send Graph API requests using Invoke-MgGraphRequest command, I am…
Need a poweshell script to list all the SPO sites with the certain character in URL where the offline client availability is set to true
Need help with a powershell to list all the SPO sites where the offline client availability is set to true.
Getting of Notification Email using Powershell Script from Azure SAML Applications
How can we get the Notification Email (see image attached) using Powershell script in Microsoft Entra ID SAML applications whose certificates are near expiry within 60 days? Currently, we can get the Key Credentials of each SAML Applications, but we…
How to setup Azure Automation account to restore database on SQL MI ?
Hello, I have a PowerShell script (see below) that I currently run daily from a task scheduler on a VM to restore a production database (SQL Managed Instance) to a secondary instance (SQL Managed Instance). I am planning to move this process to an Azure…
Trying to add Microsoft Sentinel to a Log Analytics Workspace in Azure but keep getting error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time period"
I am trying to add Microsoft Sentinel to a Log Analytics Workspace connected to a Virtual Machine in the Azure portal but keep getting the error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time…
Deleting Storage Account Pending Migration to SRP in Powershell
After much research on these forums and online in general, I'm trying to run the following two commands in attempt to delete a storage account that is pending migration to SRP: Move-AzureStorageAccount-Abort -StorageAccountName…
Real "files on demand". Automatically uploading cached OneDrive user files?
Hello, I recently came across a seemingly simple task, but in fact I have been unable to get OneDrive to do what I want it to do for two weeks now. I'll try to describe it briefly. The problem is that when a Windows user restarts or logs off their…
Exchange admin center bugs for manage email forwarding
I have set up the email forwarding in the Exchange Admin Center, where it is mentioned that "The mailbox owner will not be able to view and change this forwarding address." But I found that user logging into their mailbox can see which…
How can I troubleshoot issues connecting my "Powershell Onedrive Graph" API to Microsoft Graph Explorer for bulk exporting OneDrive photo URLs to Excel using a Microsoft 365 Business Basic license?
Please find below a screenshot of Microsoft Graph , Azur Api and MS365 license. Thank you, Regards,
How to deploy KIR through script
Team, We have over 1000 assets managed by a third party RMM tool. The document here describes how to configure local groups manually through the GUI. Since we don't have GPO or Intune, we need a way to do this through CLI or a script. Please help us…
Getting an error when trying to setup Exchange Online ForwardingAddress in Azure Runbook
Hello, I am trying to setup an Azure Automation Runbook in which I convert a User Mailbox to a Shared Mailbox and setup a ForwardingAddress. I setup all the permissions and converting the mailbox is working, setting a forwarding address throws the…