First install a module:
Install-Module AzureRM
and then import module in separate session/ window:
Import-Module AzureRM
First install a module:
Install-Module AzureRM
and then import module in separate session/ window:
Import-Module AzureRM
$VirtualMachine = Get-AzureRmVM -ResourceGroupName “myResourceGroup” -Name “myVM” Remove-AzureRmVMDataDisk -VM $VirtualMachine -Name “myDisk” Update-AzureRmVM -ResourceGroupName “myResourceGroup” -VM $VirtualMachine
Run cmd as administrator and run following command and you are done 🙂
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2
If doing manually, Delete in following order:
VM, Network Interface, NSG, Public IP, Disk, boot diagnostics disk storage, Virtual Network if no there VM is on that.
For script:
https://4sysops.com/archives/delete-an-azure-vm-with-objects-using-powershell/
Login to selected subscription using PowerShell.
run following command to register:
Register-AzureRmProviderFeature -FeatureName ManagedResourcesMove -ProviderNamespace Microsoft.Compute
to get register status:
Get-AzureRmProviderFeature -FeatureName ManagedResourcesMove -ProviderNamespace Microsoft.Compute
would take a while, afterwards register MS Compute resource provider:
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute
Add a pipeline variable: System.Debug and set its value to true.
This will give additional logs that would help troubleshoot the issue.
Additionally, if you are deploying web app, you can add a app settings SCM_DO_BUILD_DURING_DEPLOYMENT=true and re-run deployment.
Secured VSTS/ Octopus deployments
Azure AD
RBAC Groups & Permissions
Service Principal
Key Vaults
SSL Certificates, TLS
Azure Powershell 5.1
Azure CLI 2.0 : managing Azure resources
Notepad++/ VSCode: for scripts
total commander: to search and compare files
Use [Ignore] attribute underneath [TestMethod] to disable a test.
https://msdn.microsoft.com/en-us/library/ms182457(v=VS.80).aspx