PSAzureContext Class
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 context for connecting cmdlets in the current session to Azure.
public class PSAzureContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext
type PSAzureContext = class
interface IAzureContext
interface IExtensibleModel
Public Class PSAzureContext
Implements IAzureContext
- Inheritance
-
PSAzureContext
- Implements
Constructors
PSAzureContext() |
Default constructor |
PSAzureContext(IAzureContext) |
Copy Constructor |
PSAzureContext(PSObject) |
Convert a context from a PSObject |
Properties
Account |
The account used to connect to Azure. |
Environment |
The endpoint and connection metadata for the targeted instance of the Azure cloud. |
ExtendedProperties | |
Name |
The name of the context. The context may be selected by name |
Subscription |
The subscription targeted in Azure. |
Tenant |
The targeted tenant in Azure. |
TokenCache | |
VersionProfile |
Operators
Implicit(AzureContext to PSAzureContext) |
Convert between implementations of the current connection context for Azure. |
Implicit(PSAzureContext to AzureContext) |
Convert between implementations of the current connection context for Azure. |