简体   繁体   English

Azure 从 Azure 门户导出 VM 详细信息(订阅、资源组、spn、vm-name,使用 window 操作系统 SKU)的 Devops 管道

[英]Azure Devops pipeline that export VM details(subscription, resource group, spn, vm-name, with window operating system SKU) from Azure portal

Azure Devops pipeline that export VM details(subscription, resource group, spn, vm-name, with window operating system SKU) from Azure portal using azure devops extract vm information from azure potal Azure Devops pipeline that export VM details(subscription, resource group, spn, vm-name, with window operating system SKU) from Azure portal using azure devops extract vm information from azure potal

If you want to export the VM details via Azure DevOps pipeline, you could leverage the Azure PowerShell task in the pipeline, then in the task, use Get-AzVM command to get the details of the VM.如果要通过 Azure DevOps 管道导出 VM 详细信息,可以利用管道中的Azure PowerShell 任务,然后在任务中使用Get-AzVM命令获取详细信息。

Get-AzVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"

ResourceGroupName        : ResourceGroup11
Id                       : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup11/providers/M
icrosoft.Compute/virtualMachines/VirtualMachine07
VmId                     : 00000000-0000-0000-0000-000000000000
Name                     : VirtualMachine07
Type                     : Microsoft.Compute/virtualMachines
Location                 : eastus
Tags                     : {"creationSource":"acs-VirtualMachine07"}
AvailabilitySetReference : {Id}
DiagnosticsProfile       : {BootDiagnostics}
Extensions               : {linuxdiagnostic, waitforleader}
HardwareProfile          : {VmSize}
NetworkProfile           : {NetworkInterfaces}
OSProfile                : {ComputerName, AdminUsername, LinuxConfiguration, Secrets}
ProvisioningState        : Succeeded
StorageProfile           : {ImageReference, OsDisk, DataDisks}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM