azure-powershell

ArgumentNullException - Get-AzureService

别等时光非礼了梦想. 提交于 2019-12-10 16:49:17
问题 I'm trying to use the Windows Azure PowerShell module to manage a subscription. I have downloaded my certificate (the .publishsettings file) and imported it with Import-AzurePublishSettingsFile and then I've selected my subscription with Select-AzureSubscription neither of which gave errors. I've also set my subscription using Set-AzureSubscription -SubscriptionName "Blah" Still, I get a Get-AzureService : Value cannot be null. Parameter name: subscriptionId when running Get-AzureService I've

How to capture Azure VM Image with “Specialized” VM creation type using power shell? or How to create a Specialized image of a RM VM?

时光毁灭记忆、已成空白 提交于 2019-12-10 12:16:29
问题 I know that there are two types of virtual machine images, Generalized and Specialized. If the OS has been generalized /de-provisioned, the virtual machine must be shut down in order to capture it as a VM Image. Once the VM has been captured as a VM Image, the virtual machine will automatically be deleted. If the OS is specialized , the virtual machine can be captured while it is running or shut down. The captured virtual machine remains untouched. If an application consistent or cross-disk

How do I get feedback about DSC execution on an Azure VM?

ぃ、小莉子 提交于 2019-12-10 11:34:56
问题 I just finished the initial tests phase on automating our product release to Azure Virtual Machines using DSC, particularly with the commands described in this article, which are part of the Azure PowerShell SDK. I can push a DSC configuration fine using PowerShell, but since this process is automated, I wanted to get feedback on how the configuration process progressed. When I call Update-AzureVM , I get an ok but the DSC configuration happens after that, asynchronously, and I don't know how

It's possible to create App Service Plans using Azure Powershell?

旧时模样 提交于 2019-12-09 19:43:46
问题 As the title say, I need to create App Service Plans programmatilly, The scenario: N azure websites will be created (dynamically, using azure powershell too) If someday the Premium App Service Plan can't handle the quantity of websites (even with autoscaling by cpu usage), another service plan must be created to hold new sites. It is possible? Or Am I going to the wrong way to accomplish this? 回答1: Unless your design doesn't permit it, when you create a new Premium App Service Plan, create it

Using Az module in Azure DevOps Release Pipeline

泪湿孤枕 提交于 2019-12-08 18:05:18
问题 I want to use the Azure PowerShell Module (aka Az Module) in an Azure DevOps Release Pipeline. However, the existing PowerShell options don't seem to work. I've tried various things, but installing the new Az module just brings up a ton of errors, including Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. The regular PowerShell task doesn't have any azure modules built in. And the Azure PowerShell task uses the Azure RM PowerShell module,

How to use Service Fabric Powershell cmdlets in an Azure Automation runbook

安稳与你 提交于 2019-12-08 12:50:50
问题 I want to use an azure automation account to connect to a service fabric cluster and run a health check. I'm struggling with establishing a connection to the cluster because the service fabric sdk is not present. Is there a way to use the service fabric powershell cmdlets in an azure automation runbook? 回答1: You could import AzureRM.ServiceFabric 0.2.4 module to Azure automation account. Open the link https://www.powershellgallery.com/packages/AzureRM.ServiceFabric/0.2.4 and click Deploy to

How to configure the APNS.Certificate in the arm template

拥有回忆 提交于 2019-12-08 06:27:44
问题 I am using the following azuredeploy.json file for setting up the notification hub on the Azure cloud. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "Gcm.GoogleApiKey": { "type": "string", "metadata": { "description": "Google Cloud Messaging API Key" }, "defaultValue": "AIzaSyAyp9MernKgMS3wFNM3yNWByiP-TaGrqEg" }, "APNS.Certificate": { "type": "string", "metadata": { "description": "A certificate (in

Unable to log in to the newly created ARM VM when using Set-AzureRmVMOSDisk with linux and attach

不问归期 提交于 2019-12-08 03:49:18
问题 I am trying to develop a clone workflow for my properly working ARM VM running Ubuntu. This VM was created from Bitnami LAMP image in Marketplace. I am trying to use the -CreateOption attach option instead of fromImage , according my knowledge it should work... I am aware that there is an other option: deprovision->capture->-CreateOption fromImage, but that also have problems see Creating new ARM VM from captured image: Blob name in URL must end with '.vhd' extension error The workflow I

Create AD application with VSTS task

好久不见. 提交于 2019-12-08 03:08:27
问题 I am trying to create a VSTS task, which should create an AD application. Taken the DeployAzureResouceGroup as a sample, I have created to following script: [CmdletBinding()] param() Trace-VstsEnteringInvocation $MyInvocation Import-VstsLocStrings "$PSScriptRoot\Task.json" $connectedServiceNameSelector = Get-VstsInput -Name "connectedServiceNameSelector" -Require $connectedServiceName = Get-VstsInput -Name "connectedServiceName" $connectedServiceNameClassic = Get-VstsInput -Name

How do I get feedback about DSC execution on an Azure VM?

蓝咒 提交于 2019-12-06 19:41:35
I just finished the initial tests phase on automating our product release to Azure Virtual Machines using DSC, particularly with the commands described in this article , which are part of the Azure PowerShell SDK. I can push a DSC configuration fine using PowerShell, but since this process is automated, I wanted to get feedback on how the configuration process progressed. When I call Update-AzureVM , I get an ok but the DSC configuration happens after that, asynchronously, and I don't know how it is going unless I log into the machine (or look at the updated Azure Portal which now shows this )