ListTenants() 공개 메소드

List all tenants for the account in the profile context
public ListTenants ( ) : IEnumerable
리턴 IEnumerable
 protected override void ProcessRecord()
 {
     var profileClient = new RMProfileClient(AzureRmProfileProvider.Instance.Profile);
     
     WriteObject(profileClient.ListTenants(TenantId).Select((t) => (PSAzureTenant)t), enumerateCollection: true);
 }
예제 #2
0
        public override void ExecuteCmdlet()
        {
            var profileClient = new RMProfileClient(AzureRmProfileProvider.Instance.Profile);

            WriteObject(profileClient.ListTenants(TenantId).Select((t) => (PSAzureTenant)t), enumerateCollection: true);
        }