PowerShellからAzure内のリソースを管理できないかと試行錯誤しています。
以下のURLを参照しています。
https://docs.microsoft.com/en-us/powershell/azure/overview?view=azps-1.8.0
目的は、CloudService(クラシック)のデプロイIDを取得する事です。
リソースグループとリソース名を指定して、クラウドサービス(クラシック)を取得する事は成功しました。
PowerShell
1$cloudService = Get-AzResource -ResourceGroupName "ResourceGroupHoge" -ResourceName "CloudServiceHoge"
しかし、このCloudServiceのメンバーには、デプロイIDが存在しません。以下はGet-Memberを使用してメンバーの一覧を取得したものです。
PowerShell
1$cloudService | Get-Member 2 TypeName: Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource 3 4Name MemberType Definition 5---- ---------- ---------- 6Equals Method bool Equals(System.Object obj) 7GetHashCode Method int GetHashCode() 8GetType Method type GetType() 9ToString Method string ToString() 10ChangedTime Property System.Nullable[datetime] ChangedTime {get;set;} 11CreatedTime Property System.Nullable[datetime] CreatedTime {get;set;} 12ETag Property string ETag {get;set;} 13ExtensionResourceName Property string ExtensionResourceName {get;set;} 14ExtensionResourceType Property string ExtensionResourceType {get;set;} 15Id Property string Id {get;set;} 16Identity Property Microsoft.Azure.Management.ResourceManager.Models.Identity Identity {get;set;} 17Kind Property string Kind {get;set;} 18Location Property string Location {get;set;} 19ManagedBy Property string ManagedBy {get;set;} 20Name Property string Name {get;set;} 21ParentResource Property string ParentResource {get;set;} 22Plan Property Microsoft.Azure.Management.ResourceManager.Models.Plan Plan {get;set;} 23Properties Property psobject Properties {get;set;} 24ResourceGroupName Property string ResourceGroupName {get;set;} 25ResourceId Property string ResourceId {get;set;} 26ResourceName Property string ResourceName {get;set;} 27ResourceType Property string ResourceType {get;set;} 28Sku Property Microsoft.Azure.Management.ResourceManager.Models.Sku Sku {get;set;} 29SubscriptionId Property string SubscriptionId {get;set;} 30Tags Property System.Collections.Generic.IDictionary[string,string] Tags {get;set;} 31Type Property string Type {get;set;}
この先、どこを見ればデプロイIDを見つけられるでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。