在az cli或azurerm中找不到RedHat arm
运行后:在az cli或azurerm中找不到RedHat arm,azure,terraform,azure-powershell,azure-cli,Azure,Terraform,Azure Powershell,Azure Cli,运行后: az vm image terms --urn RedHat:RHEL:7.8:7.8.2020090816 show 错误: CommandNotFoundError: 'RedHat:RHEL:7.8:7.8.2020090816' is misspelled or not recognized by the system. 此外,centos-7-8还返回以下信息: Get-AzureRmMarketplaceTerms -Publisher 'procomputers' -
az vm image terms --urn RedHat:RHEL:7.8:7.8.2020090816 show
错误:
CommandNotFoundError: 'RedHat:RHEL:7.8:7.8.2020090816' is misspelled or not recognized by the system.
此外,centos-7-8
还返回以下信息:
Get-AzureRmMarketplaceTerms -Publisher 'procomputers' -Product 'centos-7-8' -Name 'centos-7-8'
Publisher : procomputers
Product : centos-7-8
Plan : centos-7-8
LicenseTextLink : https://storelegalterms.blob.core.windows.net/legalterms/3E5ED_legalterms_PROCOMPUTERS%253a24CENTOS
%253a2D7%253a2D8%253a24CENTOS%253a2D7%253a2D8%253a24T622IBUBKL6J3MHL5NUAWG2XNZ5H5FVSJGLCOC54LB63AGI
ONYH5CDZVDEYDONEFK2NHKCZROAP7ZU5PLZHXJ5ZNBFEUCBOWWMC4DSY.txt
PrivacyPolicyLink : http://www.procomputers.com/privacy-policy.html
Signature : TE7WPYLUZF56EK3MSEL4MNYDVDO6XAXI4BAUXAQHN3SLVFU4MYTVAMGWTTXXM6VLYZ7R4O7EZP53YCRDYRZPUZ3LNINTFLZ74XG
XKYA
Accepted : True
Signdate : 23/10/2020 11:20:29 AM
但是,要在marketplace上为RedHat 7.8 arm运行相同的命令,将返回一个错误
Get-AzureRmMarketplaceTerms -Publisher 'RedHat' -Product 'RedHatEnterpriseLinux78-ARM' -Name 'RedHatEnterpriseLinux78-ARM'
Get-AzureRmMarketplaceTerms : The Publisher: 'RedHat' does not make available Offer: 'RedHatEnterpriseLinux78-ARM',
Plan: 'RedHatEnterpriseLinux78-ARM' in your Subscription/Azure account’s region: ''. Correlation Id:
'ad2a0b91-d89a-4a8f-9cd5-bb85ff95d897'.
At line:1 char:1
+ Get-AzureRmMarketplaceTerms -Publisher 'RedHat' -Product 'RedHatEnter ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzureRmMarketplaceTerms], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.MarketplaceOrdering.Cmdlets.Agreements.GetAzureRmMarketplaceTer
ms
当我试图通过Terraform部署VM并使用Redhat7.8ARM时,我需要将术语设置为已接受,并通过Terraform部署VM
请帮忙。谢谢。要运行的Azure CLI命令的正确格式是:
az vm image terms show --urn <urn>
要通过Azure PowerShell进行检查,例如,对于美国西部2地区,您可以运行:
PS C:\> Get-AzVMImage -Location "westus2" -PublisherName "RedHat" -Offer "RHEL" -Skus "7.8" -Version "7.8.2020090816"
输出:
Id : /Subscriptions/<Subscription ID>/Providers/Microsoft.Compute/Locations/westus2/Publishers/RedHat/ArtifactTypes/VMImag
e/Offers/RHEL/Skus/7.8/Versions/7.8.2020090816
Location : westus2
PublisherName : RedHat
Offer : RHEL
Skus : 7.8
Version : 7.8.2020090816
FilterExpression :
Name : 7.8.2020090816
HyperVGeneration : V1
OSDiskImage : {
"operatingSystem": "Linux"
}
PurchasePlan : null
DataDiskImages : []
Id:/Subscriptions//Providers/Microsoft.Compute/Locations/westus2/publisher/RedHat/ArtifactTypes/VMImag
e/Offers/RHEL/Skus/7.8/Versions/7.8.2020090816
地点:westus2
出版商名称:红帽
报价:RHEL
库存单位:7.8
版本:7.8.2020090816
FilterExpression:
姓名:7.8.2020090816
超病毒1代
OSDiskImage:{
“操作系统”:“Linux”
}
PurchasePlan:空
DataDiskImages:[]
由于此映像的
PurchasePlan
为null
,这意味着在编程部署之前,此映像没有可接受的其他条款。要运行的Azure CLI命令的正确格式为:
az vm image terms show --urn <urn>
要通过Azure PowerShell进行检查,例如,对于美国西部2地区,您可以运行:
PS C:\> Get-AzVMImage -Location "westus2" -PublisherName "RedHat" -Offer "RHEL" -Skus "7.8" -Version "7.8.2020090816"
输出:
Id : /Subscriptions/<Subscription ID>/Providers/Microsoft.Compute/Locations/westus2/Publishers/RedHat/ArtifactTypes/VMImag
e/Offers/RHEL/Skus/7.8/Versions/7.8.2020090816
Location : westus2
PublisherName : RedHat
Offer : RHEL
Skus : 7.8
Version : 7.8.2020090816
FilterExpression :
Name : 7.8.2020090816
HyperVGeneration : V1
OSDiskImage : {
"operatingSystem": "Linux"
}
PurchasePlan : null
DataDiskImages : []
Id:/Subscriptions//Providers/Microsoft.Compute/Locations/westus2/publisher/RedHat/ArtifactTypes/VMImag
e/Offers/RHEL/Skus/7.8/Versions/7.8.2020090816
地点:westus2
出版商名称:红帽
报价:RHEL
库存单位:7.8
版本:7.8.2020090816
FilterExpression:
姓名:7.8.2020090816
超病毒1代
OSDiskImage:{
“操作系统”:“Linux”
}
PurchasePlan:空
DataDiskImages:[]
由于此映像的PurchasePlan
为null
,这意味着在编程部署之前,此映像没有可接受的附加条款