Requiments.psd 1”中: # For latest supported version, go to 'https://www.powershellgallery.com/packages/Az# To use the Az module in your function app, please uncomment the line below.#'Az' = '8.*'
AzTable = '2.*
我希望能够根据状态(运行/停止(解除分配))查询这些VM,并将其输出到文件中。启动命令- az vm start --ids $(az resource list --tag Restart=${TAG_RESTART} --query "[?type=='Microsoft.Compute/virtualMachines'].id" -o table)
查询命令- az resource list --tag Restart=