azure-cli2

Azure-CLI/Powershell Password requirments

时光怂恿深爱的人放手 提交于 2019-12-01 14:22:58
So i am trying to make a variable match the password requirements for making a virtual machine in azure CLI to do this it must have 3 of the following !uppercase, 1 lowercase 1 special character or a number This is the main code i am trying to change $AdminPassword = Read-Host -Prompt "Please insert a Admin Password (Password must have 3 of the following: 1 lower case character, 1 upper case character, 1 number and 1 special character)" This is the code i changed but isn't working correctly do { $AdminPassword = Read-Host -Prompt "Please insert a Admin Password (Password must have the 3 of the

Azure CLI vs Powershell?

强颜欢笑 提交于 2019-11-30 14:27:26
问题 Not precisely able to understand the merit of Azure CLI on Windows environment. Is it targetted for the audience who want to manage Azure IAAS from Linux environment? I thought Powershell core is going to be the way for non-Windows admins. Is PowerShell Core not going to be ported to well on all platforms, to serve the cross-platform audience? In a nutshell, is it worth learning Azure CLI? 回答1: Azure CLI is a PowerShell-like-tool available for all platforms. You can use the same commands no

Set Output Variable in Azure CLI task on VSTS

落爺英雄遲暮 提交于 2019-11-27 07:51:39
问题 I am getting crazy to achieve this very simple task. I need to set an Output Variable in an Azure CLI task on Visual Studio Team Services, because next task in the Release definition will be executed according to the value of this variable. I wrote this simple code call az extension add --name azure-cli-iot-ext call echo ##vso[task.setvariable variable=iotEdgeExists;]$(az iot hub query -n $(iotHub) -q "select * from devices.modules where devices.deviceId ='$(iotEdge)'") which works, but not