PSAzureProfile.Context Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The current credentials and metadata for connecting with the current Azure cloud instance.
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Subscription name", Position=0, ScriptBlock="if($null -ne $_.Context.Subscription.Name){$_.Context.Subscription.Name}else{$_.Context.Subscription.Id}", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Tenant", Position=1, ScriptBlock="if($null -ne $_.Context.Tenant.Name){$_.Context.Tenant.Name}else{$_.Context.Tenant.Id}", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
public Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext Context { get; set; }
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Subscription name", Position=0, ScriptBlock="if($null -ne $_.Context.Subscription.Name){$_.Context.Subscription.Name}else{$_.Context.Subscription.Id}", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Tenant", Position=1, ScriptBlock="if($null -ne $_.Context.Tenant.Name){$_.Context.Tenant.Name}else{$_.Context.Tenant.Id}", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
member this.Context : Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext with get, set
Public Property Context As PSAzureContext
Property Value
- Attributes