Class AzureTenant
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a Microsoft Azure tenant.
[SupportsClientScan]
[SupportsSupportProvisions]
public class AzureTenant : BaseConfigurationType
- Inheritance
-
AzureTenant
- Inherited Members
Constructors
AzureTenant()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.AzureTenant class.
public AzureTenant()
Properties
AppServicePlans
Gets or sets the app service plans configured within the Azure tenant environment.
public AzureAppServicePlans AppServicePlans { get; set; }
Property Value
AvailabilitySets
Gets or sets the availability sets configured within the tenant.
public AzureAvailabilitySets AvailabilitySets { get; set; }
Property Value
Disks
Gets or sets the managed disks configured in the tenant.
public AzureDisks Disks { get; set; }
Property Value
IsUnsupportedClientVersion
Gets whether the item was scanned using an unsupported client version.
[Browsable(false)]
public bool IsUnsupportedClientVersion { get; }
Property Value
Locations
Gets or sets all available Azure locations.
public AzureLocations Locations { get; set; }
Property Value
ManagementGroups
Gets or sets the management groups configured within the tenant.
public AzureManagementGroups ManagementGroups { get; set; }
Property Value
NetworkInterfaces
Gets or sets the network interfaces configured in the tenant.
public AzureNetworkInterfaces NetworkInterfaces { get; set; }
Property Value
NetworkSecurityGroups
Gets or sets the network security groups configured within the tenant.
public AzureNetworkSecurityGroups NetworkSecurityGroups { get; set; }
Property Value
ProximityPlacementGroups
Gets or sets the proximity placement groups configured within the tenant.
public AzureProximityPlacementGroups ProximityPlacementGroups { get; set; }
Property Value
PublicIPAddresses
Gets or sets the public IP addresses configured within the tenant.
public AzurePublicIPAddresses PublicIPAddresses { get; set; }
Property Value
ResourceGroups
Gets or sets the resource groups configured within the Azure tenant.
public AzureResourceGroups ResourceGroups { get; set; }
Property Value
Resources
Gets or sets all resources configured within the tenant.
public AzureResources Resources { get; set; }
Property Value
RoleDefinitions
Gets or sets the role definitions configured for the tenant.
public AzureRoleDefinitions RoleDefinitions { get; set; }
Property Value
RouteTables
Gets or sets the route tables configured within the Azure tenant.
public AzureRouteTables RouteTables { get; set; }
Property Value
SqlDatabases
Gets or sets the configured SQL databases.
public AzureSqlDatabases SqlDatabases { get; set; }
Property Value
SqlElasticPools
Gets or sets the SQL elastic pools configured within the Azure tenant environment.
public AzureSqlElasticPools SqlElasticPools { get; set; }
Property Value
SqlServers
Gets or sets the configured SQL servers.
public AzureSqlServers SqlServers { get; set; }
Property Value
StorageAccounts
Gets or sets the configured storage accounts.
public AzureStorageAccounts StorageAccounts { get; set; }
Property Value
Subscriptions
Gets or sets the subscriptions assigned to the tenant.
public AzureSubscriptions Subscriptions { get; set; }
Property Value
TenantInformation
Gets or sets information about the tenant.
public AzureTenantInformation TenantInformation { get; set; }
Property Value
VirtualMachines
Gets or sets the virtual machines configured within the Azure tenant environment.
public AzureVirtualMachines VirtualMachines { get; set; }
Property Value
VirtualNetworks
Gets or sets the virtual networks configured within the Azure tenant environment.
public AzureVirtualNetworks VirtualNetworks { get; set; }
Property Value
WebApps
Gets or sets the web apps configured within the Azure tenant environment.
public AzureWebApps WebApps { get; set; }
Property Value
Methods
Clone()
Returns a CENTREL.XIA.Configuration.Types.AzureTenant cloned from this object.
public AzureTenant Clone()
Returns
- AzureTenant
A CENTREL.XIA.Configuration.Types.AzureTenant.
FindAlertRuleByIdentifier(Guid)
Returns the alert rule with the specified unique identifier regardless of the subscription in which it resides.
public AzureAlertRuleBase FindAlertRuleByIdentifier(Guid identifier)
Parameters
identifier
GuidThe unique identifier of the alert rule to locate.
Returns
- AzureAlertRuleBase
The alert rule with the specified unique identifier.
FindPolicyAssignmentByIdentifier(Guid)
Returns the policy assignment with the specified unique identifier regardless of the subscription in which it resides.
public AzurePolicyAssignment FindPolicyAssignmentByIdentifier(Guid identifier)
Parameters
identifier
GuidThe unique identifier of the policy assignment to locate.
Returns
- AzurePolicyAssignment
The policy assignment with the specified unique identifier.
FindResourceById(string)
Returns the full resource with the specified resource identifier.
public AzureResourceBase FindResourceById(string resourceId)
Parameters
resourceId
stringThe resource identifier of the resource to locate.
Returns
- AzureResourceBase
The resource with the specified resource identifier.
FindResourceByIdentifier(Guid)
Returns the full resource with the specified unique identifier.
public AzureResourceBase FindResourceByIdentifier(Guid identifier)
Parameters
identifier
GuidThe unique identifier of the resource to locate.
Returns
- AzureResourceBase
The resource with the specified unique identifier.
FindResourcesByResourceGroup(AzureResourceGroup)
Returns a collection of the CENTREL.XIA.Configuration.Types.AzureResource in the specified resource group.
public AzureResourceCollection FindResourcesByResourceGroup(AzureResourceGroup resourceGroup)
Parameters
resourceGroup
AzureResourceGroupThe identifier of the CENTREL.XIA.Configuration.Types.AzureResourceGroup in which to locate the resources.
Returns
- AzureResourceCollection
A CENTREL.XIA.Configuration.Types.AzureResourceCollection containing the resources in the specified resource group.
FindSectionByResourceType(AzureResourceType)
Returns the section for the resources of the specified type.
public BypassSection FindSectionByResourceType(AzureResourceType resourceType)
Parameters
resourceType
AzureResourceTypeThe resource type of the section to locate.
Returns
- BypassSection
The resource with the specified resource identifier.
FindSubscriptions(AzureManagementGroup)
Returns the immediate subscriptions in the specified management group.
public AzureSubscriptionCollection FindSubscriptions(AzureManagementGroup managementGroup)
Parameters
managementGroup
AzureManagementGroupThe management group in which to search.
Returns
- AzureSubscriptionCollection
The immediate subscriptions in the specified management group.
FindSubscriptions(AzureManagementGroup, bool)
Returns the subscriptions in the specified management group.
public AzureSubscriptionCollection FindSubscriptions(AzureManagementGroup managementGroup, bool recurse)
Parameters
managementGroup
AzureManagementGroupThe management group in which to search.
recurse
boolDetermines whether to recurse child management groups.
Returns
- AzureSubscriptionCollection
The subscriptions in the specified management group.
FindVirtualMachineDiskByIdentifier(Guid)
Finds the virtual machine disk with the specified identifier regardless of the virtual machine to which it is assigned.
public AzureVirtualMachineDiskBase FindVirtualMachineDiskByIdentifier(Guid identifier)
Parameters
identifier
GuidThe unique identifier of the extension to return in GUID format.
Returns
- AzureVirtualMachineDiskBase
The virtual machine disk with the specified identifier.
FindVirtualMachineExtensionById(string)
Returns the virtual machine extension with the specified identifier, regardless of the virtual machine to which it is assigned.
public AzureVirtualMachineExtension FindVirtualMachineExtensionById(string resourceId)
Parameters
resourceId
stringThe resource identifier of the extension to return.
Returns
- AzureVirtualMachineExtension
A CENTREL.XIA.Configuration.Types.AzureVirtualMachineExtension with the specified identifier.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.AzureTenant class from the specified XML.
public static AzureTenant FromXml(string xml)
Parameters
xml
stringThe XML representation of the object.
Returns
- AzureTenant
A CENTREL.XIA.Configuration.Types.AzureTenant class.
GetEffectiveResourceLocks(AzureResourceBase)
Returns the effective locks for the specified resource.
public AzureResourceLocks GetEffectiveResourceLocks(AzureResourceBase resource)
Parameters
resource
AzureResourceBaseThe resource for which the effective locks should be found.
Returns
- AzureResourceLocks
The effective locks for the specified resource.
GetEffectiveResourceLocks(AzureResourceGroup)
Returns the effective locks for the specified resource group.
public AzureResourceLocks GetEffectiveResourceLocks(AzureResourceGroup resourceGroup)
Parameters
resourceGroup
AzureResourceGroupThe resource group for which the effective locks should be found.
Returns
- AzureResourceLocks
The effective locks for the specified resource group.
GetEffectiveRoleAssignments(AzureResourceBase, bool)
Returns the effective role assignments for the specified resource.
public AzureRoleAssignments GetEffectiveRoleAssignments(AzureResourceBase resource, bool includeInherited)
Parameters
resource
AzureResourceBaseThe resource for which the effective role assignments should be found.
includeInherited
boolDetermines whether to include inherited role assignments.
Returns
- AzureRoleAssignments
The effective role assignments for the specified resource.
GetEffectiveRoleAssignments(AzureResourceGroup, bool)
Returns the effective role assignments for the specified resource group.
public AzureRoleAssignments GetEffectiveRoleAssignments(AzureResourceGroup resourceGroup, bool includeInherited)
Parameters
resourceGroup
AzureResourceGroupThe resource group for which the effective role assignments should be found.
includeInherited
boolDetermines whether to include inherited role assignments.
Returns
- AzureRoleAssignments
The effective role assignments for the specified resource group.
GetEffectiveRoleAssignments(AzureSubscription, bool)
Returns the effective role assignments for the specified subscription.
public AzureRoleAssignments GetEffectiveRoleAssignments(AzureSubscription subscription, bool includeInherited)
Parameters
subscription
AzureSubscriptionThe subscription for which the effective role assignments should be found.
includeInherited
boolDetermines whether to include inherited role assignments.
Returns
- AzureRoleAssignments
The effective role assignments for the specified subscription.
GetLocationNamesInUse()
Returns all of the location names that are in use in resource groups and resources within the tenant.
public SerializableStringCollection GetLocationNamesInUse()
Returns
- SerializableStringCollection
The locations that are in use in resource groups and resources within the tenant.
Remarks
The "global" location is ignored.
GetLocationNamesInUse(AzureResourceGroup)
Returns all of the locations that are in use in the specified resource group.
public SerializableStringCollection GetLocationNamesInUse(AzureResourceGroup resourceGroup)
Parameters
resourceGroup
AzureResourceGroupThe resource group for which the locations should be found.
Returns
- SerializableStringCollection
The locations that are in use in the specified resource group.
Remarks
The "global" location is ignored.
GetLocationNamesInUse(AzureSubscription)
Returns all of the locations that are in use in the specified subscription.
public SerializableStringCollection GetLocationNamesInUse(AzureSubscription subscription)
Parameters
subscription
AzureSubscriptionThe subscription for which the locations should be found.
Returns
- SerializableStringCollection
The locations that are in use in the specified subscription.
Remarks
The "global" location is ignored.
IsScaleSetVirtualMachinesNetworkInterface(string)
Determines whether the resource with the specified identifier is a scale set virtual machines network interface.
public bool IsScaleSetVirtualMachinesNetworkInterface(string resourceId)
Parameters
resourceId
stringThe unique identifier resource to evaluate - for example "/subscriptions/5577ee1c-ca8c-4f09-9f48-73e7766c688a/resourceGroups/WebServers/providers/Microsoft.Compute/virtualMachineScaleSets/ScaleSet1/virtualMachines/corp-vm01/networkInterfaces/Network1".
Returns
- bool
A System.Boolean value that indicates whether the resource with the specified identifier is a scale set virtual machines network interface.
LoadXml(string)
Returns a CENTREL.XIA.Configuration.Types.AzureTenant class from the specified XML file.
public static AzureTenant LoadXml(string xml)
Parameters
xml
stringThe absolute path of the XML file to load.
Returns
- AzureTenant
A new instance of the CENTREL.XIA.Configuration.Types.AzureTenant class from the specified XML file.
ResolveDisplayName(string)
Resolves the display name of the object with the specified identifier.
public string ResolveDisplayName(string resourceId)
Parameters
resourceId
stringThe unique identifier of the subscription, resource or resource group to resolve - for example "/subscriptions/5577ee1c-ca8c-4f09-9f48-73e7766c688a/resourceGroups/WebServers".
Returns
- string
The name of the object with the specified identifier.