你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzCdnProfile
获取具有指定订阅和资源组下指定配置文件名称的 CDN 配置文件。
语法
Get-AzCdnProfile
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCdnProfile
[-SubscriptionId <String[]>]
-ResourceGroupName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCdnProfile
[-SubscriptionId <String[]>]
-Name <String>
-ResourceGroupName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCdnProfile
-InputObject <ICdnIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取具有指定订阅和资源组下指定配置文件名称的 CDN 配置文件。
示例
示例 1:列出订阅下的 AzureCDN 配置文件
Get-AzCdnProfile
Location Name Kind ResourceGroupName
-------- ---- ---- -----------------
Global p-oln142 cdn testps-rg-godj4q
Global cdn001 cdn testps-rg-da16jm
Global cdn002 cdn testps-rg-da16jm
列出订阅下的 AzureCDN 配置文件
示例 2:列出资源组下的 AzureCDN 配置文件
Get-AzCdnProfile -ResourceGroupName testps-rg-da16jm
Location Name Kind ResourceGroupName
-------- ---- ---- -----------------
Global cdn001 cdn testps-rg-da16jm
Global cdn002 cdn testps-rg-da16jm
列出资源组下的 AzureCDN 配置文件
示例 3:获取资源组下的 AzureCDN 配置文件
Get-AzCdnProfile -ResourceGroupName testps-rg-da16jm -Name cdn001
Location Name Kind ResourceGroupName
-------- ---- ---- -----------------
Global cdn001 cdn testps-rg-da16jm
获取资源组下的 AzureCDN 配置文件
示例 4:通过标识获取资源组下的 AzureCDN 配置文件
New-AzCdnProfile -ResourceGroupName testps-rg-da16jm -Name cdn001 -SkuName Standard_Microsoft -Location Global | Get-AzCdnProfile
Location Name Kind ResourceGroupName
-------- ---- ---- -----------------
Global cdn001 cdn testps-rg-da16jm
通过标识获取资源组下的 AzureCDN 配置文件
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
类型: | ICdnIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
资源组中唯一的 CDN 配置文件的名称。
类型: | String |
别名: | ProfileName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
Azure 订阅中的资源组的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
Azure 订阅 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |