azure-powershell

How to include “Plan information” when creating ARM VM from a captured image using Powershell?

岁酱吖の 提交于 2019-11-28 04:26:47
问题 I have a ARM VM created from a Marketplace: bitnami LAMP (Ubuntu) I've successfully captured an image. During the capture I've saved the json template. Using a template based on that I can successfully create new VMs via the portal's Template Deployment facility interactively. (so the captured image is OK). Please note: That json template do include plan information, see below However my original goal is to create new ARM VMs based on the captured image using Powershell All seems to work

How to add a certificate to an Azure RM website with Powershell

独自空忆成欢 提交于 2019-11-28 01:41:56
Lightly related to How to add an SSL certificate to an azure website using powershell? I am trying to add a certificate to an Azure RM website via Powershell. I don't think there is a direct Azure Powershell command, and it will need to be done via New-AzureRmResource In the latest release of Azure PowerShell v 1.1.0, there is a number of new commands to handle SSL certificates in Azure Web Apps You can upload the certificate and bind it to hostname using New-AzureRmWebAppSSLBinding -ResourceGroupName myresourcegroup -WebAppName mytestapp -CertificateFilePath PathToPfxFile -CertificatePassword

How to access Kudu in Azure using power shell script

南笙酒味 提交于 2019-11-27 16:31:57
I am trying to access Kudu through power shell script. Link looks like: https://adc-dev.scm.azurewebsites.net . I need to copy war file located in D:\home\site\wwwroot\bin\apache-tomcat-8.0.33\webapps location in above link. Currently I am deploying the war file using VSTS by adding FTP task. But before deploying the latest war I would like to take backup of the old war in some location in Azure Kudu location say like: D:\home\site\wwwroot\bin\apache-tomcat-8.0.33 (root folder to the war location). So after that I can remove the war and deploy the latest war file in Kudu. How to do this? I

Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet

邮差的信 提交于 2019-11-27 15:31:31
问题 I was trying to install Azure using Install-Module Azure in PowerShell. I got the following error: PS C:\Windows\system32> Install-Module Azure Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is corre ct and try again. At line:1 char:1 + Install-Module Azure + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Install-Module:String) []

Adding an App Settings to existing Azure Web Application using Azure Power Shell

ⅰ亾dé卋堺 提交于 2019-11-27 11:20:41
I want to write a script that run using azure power shell to automate adding the Web Application configuration Azure > MyWebApp > Application Settings > App settings It's look like key = "value" I write this script ########################### # MyApp Config Automation # ########################### #Begin $subscriptionName="MySubscriptionName" $webSiteName="MyWebAppName" $storageAccountName="StorageAccountName" ######################################## $userName = "myaccount@outlook.com" $securePassword = ConvertTo-SecureString -String "mypass" -AsPlainText -Force ###############################

Remove files and foldes on Azure before a new deploy from VSTS

痴心易碎 提交于 2019-11-27 02:06:50
As part of my build process in VSTS I want to delete all files and folders (except af few) from my azure site before a new deploy. My guess is, that using a Azure Powershell script would be a good idea and I would prefer making an inline script. I am using Azure Resource Manager as connection type, I have selected my subscription and script type (Inline Script) but then I am lost, how do i select my app service and, for a start, list my files? Trying just, this for a test, only gives my files in my VSTS environment Get-ChildItem -Path $(build.sourcesDirectory) First, it’s better to include the

How to access Kudu in Azure using power shell script

三世轮回 提交于 2019-11-26 18:41:10
问题 I am trying to access Kudu through power shell script. Link looks like: https://adc-dev.scm.azurewebsites.net . I need to copy war file located in D:\home\site\wwwroot\bin\apache-tomcat-8.0.33\webapps location in above link. Currently I am deploying the war file using VSTS by adding FTP task. But before deploying the latest war I would like to take backup of the old war in some location in Azure Kudu location say like: D:\home\site\wwwroot\bin\apache-tomcat-8.0.33 (root folder to the war

How to add a certificate to an Azure RM website with Powershell

放肆的年华 提交于 2019-11-26 18:34:13
问题 Lightly related to How to add an SSL certificate to an azure website using powershell? I am trying to add a certificate to an Azure RM website via Powershell. I don't think there is a direct Azure Powershell command, and it will need to be done via New-AzureRmResource 回答1: In the latest release of Azure PowerShell v 1.1.0, there is a number of new commands to handle SSL certificates in Azure Web Apps You can upload the certificate and bind it to hostname using New-AzureRmWebAppSSLBinding

How to add a certificate to an Azure RM website with Powershell

时光毁灭记忆、已成空白 提交于 2019-11-26 17:26:00
问题 Lightly related to How to add an SSL certificate to an azure website using powershell? I am trying to add a certificate to an Azure RM website via Powershell. I don't think there is a direct Azure Powershell command, and it will need to be done via New-AzureRmResource 回答1: In the latest release of Azure PowerShell v 1.1.0, there is a number of new commands to handle SSL certificates in Azure Web Apps You can upload the certificate and bind it to hostname using New-AzureRmWebAppSSLBinding

Adding an App Settings to existing Azure Web Application using Azure Power Shell

扶醉桌前 提交于 2019-11-26 15:32:25
问题 I want to write a script that run using azure power shell to automate adding the Web Application configuration Azure > MyWebApp > Application Settings > App settings It's look like key = "value" I write this script ########################### # MyApp Config Automation # ########################### #Begin $subscriptionName="MySubscriptionName" $webSiteName="MyWebAppName" $storageAccountName="StorageAccountName" ######################################## $userName = "myaccount@outlook.com"