Azure Class

  • java.lang.Object
    • com.microsoft.azure.management.Azure

public class Azure

The entry point for accessing resource management APIs in Azure.

Method Summary

Modifier and Type Method and Description
AccessManagement accessManagement()
ApplicationGateways applicationGateways()
AppServiceManager appServices()
Azure.Authenticated authenticate(AzureTokenCredentials credentials)

Authenticate to Azure using an Azure credentials object.

Azure.Authenticated authenticate(File credentialsFile)

Authenticates API access using a properties file containing the required credentials.

Azure.Authenticated authenticate(RestClient restClient, String tenantId)

Authenticates API access using a RestClient instance.

Azure.Authenticated authenticate(RestClient restClient, String tenantId, String subscriptionId)

Authenticates API access using a RestClient instance.

AvailabilitySets availabilitySets()
BatchAccounts batchAccounts()
CdnProfiles cdnProfiles()
ComputeUsages computeUsages()
Azure.Configurable configure()
ContainerGroups containerGroups()
Registries containerRegistries()
ContainerServices containerServices()
CosmosDBAccounts cosmosDBAccounts()
Deployments deployments()
Disks disks()
DnsZones dnsZones()
Features features()
GenericResources genericResources()
Subscription getCurrentSubscription()
LoadBalancers loadBalancers()
LocalNetworkGateways localNetworkGateways()
NetworkInterfaces networkInterfaces()
Networks networks()
NetworkSecurityGroups networkSecurityGroups()
NetworkUsages networkUsages()
NetworkWatchers networkWatchers()
PolicyAssignments policyAssignments()
PolicyDefinitions policyDefinitions()
Providers providers()
PublicIPAddresses publicIPAddresses()
RedisCaches redisCaches()
ResourceGroups resourceGroups()
RouteTables routeTables()
SearchServices searchServices()
ServiceBusNamespaces serviceBusNamespaces()
Snapshots snapshots()
SqlServers sqlServers()
StorageAccounts storageAccounts()
Usages storageUsages()
String subscriptionId()
Subscriptions subscriptions()
TrafficManagerProfiles trafficManagerProfiles()
Vaults vaults()
VirtualMachineCustomImages virtualMachineCustomImages()
VirtualMachineImages virtualMachineImages()
VirtualMachines virtualMachines()
VirtualMachineScaleSets virtualMachineScaleSets()
VirtualNetworkGateways virtualNetworkGateways()
WebApps webApps()

Method Details

accessManagement

public AccessManagement accessManagement()

Returns:

entry point to authentication and authorization management in Azure

applicationGateways

public ApplicationGateways applicationGateways()

Returns:

entry point to managing application gateways

appServices

public AppServiceManager appServices()

Returns:

entry point to managing app services.

authenticate

public static Authenticated authenticate(AzureTokenCredentials credentials)

Authenticate to Azure using an Azure credentials object.

Parameters:

credentials - the credentials object

Returns:

the authenticated Azure client

authenticate

public static Authenticated authenticate(File credentialsFile)

Authenticates API access using a properties file containing the required credentials.

Parameters:

credentialsFile - the file containing the credentials in the standard Java properties file format, with the following keys:

Returns:

authenticated Azure client

Throws:

IOException - exception thrown from file access

authenticate

public static Authenticated authenticate(RestClient restClient, String tenantId)

Authenticates API access using a RestClient instance.

Parameters:

restClient - the RestClient configured with Azure authentication credentials
tenantId - the tenantId in Active Directory

Returns:

authenticated Azure client

authenticate

public static Authenticated authenticate(RestClient restClient, String tenantId, String subscriptionId)

Authenticates API access using a RestClient instance.

Parameters:

restClient - the RestClient configured with Azure authentication credentials
tenantId - the tenantId in Active Directory
subscriptionId - the ID of the subscription

Returns:

authenticated Azure client

availabilitySets

public AvailabilitySets availabilitySets()

Returns:

entry point to managing availability sets

batchAccounts

public BatchAccounts batchAccounts()

Returns:

entry point to managing batch accounts.

cdnProfiles

public CdnProfiles cdnProfiles()

Returns:

entry point to managing cdn manager profiles.

computeUsages

public ComputeUsages computeUsages()

Returns:

entry point to managing compute resource usages

configure

public static Configurable configure()

Returns:

an interface allow configurations on the client.

containerGroups

public ContainerGroups containerGroups()

Returns:

entry point to managing Azure Container Instances.

containerRegistries

public Registries containerRegistries()

Returns:

entry point to managing Container Registries.

containerServices

public ContainerServices containerServices()

Returns:

entry point to managing Service Bus operations.

cosmosDBAccounts

public CosmosDBAccounts cosmosDBAccounts()

Returns:

entry point to managing Container Regsitries.

deployments

public Deployments deployments()

Returns:

entry point to managing deployments

disks

public Disks disks()

Returns:

entry point to managing managed disks

dnsZones

public DnsZones dnsZones()

Returns:

entry point to managing DNS zones.

features

public Features features()

Returns:

entry point to managing features

genericResources

public GenericResources genericResources()

Returns:

entry point to management generic resources

getCurrentSubscription

public Subscription getCurrentSubscription()

Returns:

the currently selected subscription this client is authenticated to work with

loadBalancers

public LoadBalancers loadBalancers()

Returns:

entry point to managing load balancers

localNetworkGateways

public LocalNetworkGateways localNetworkGateways()

Returns:

entry point to managing local network gateways

networkInterfaces

public NetworkInterfaces networkInterfaces()

Returns:

entry point to managing network interfaces

networks

public Networks networks()

Returns:

entry point to managing virtual networks

networkSecurityGroups

public NetworkSecurityGroups networkSecurityGroups()

Returns:

entry point to managing network security groups

networkUsages

public NetworkUsages networkUsages()

Returns:

entry point to managing network resource usages

networkWatchers

public NetworkWatchers networkWatchers()

Returns:

entry point to managing network watchers

policyAssignments

public PolicyAssignments policyAssignments()

Returns:

entry point to managing policy assignments.

policyDefinitions

public PolicyDefinitions policyDefinitions()

Returns:

entry point to managing policy definitions.

providers

public Providers providers()

Returns:

entry point to managing resource providers

publicIPAddresses

public PublicIPAddresses publicIPAddresses()

Returns:

entry point to managing public IP addresses

redisCaches

public RedisCaches redisCaches()

Returns:

entry point to managing Redis Caches.

resourceGroups

public ResourceGroups resourceGroups()

Returns:

entry point to managing resource groups

routeTables

public RouteTables routeTables()

Returns:

entry point to managing route tables

searchServices

public SearchServices searchServices()

Returns:

entry point to managing Search services.

serviceBusNamespaces

public ServiceBusNamespaces serviceBusNamespaces()

Returns:

entry point to managing Service Bus.

snapshots

public Snapshots snapshots()

Returns:

entry point to managing managed snapshots

sqlServers

public SqlServers sqlServers()

Returns:

entry point to managing Sql server.

storageAccounts

public StorageAccounts storageAccounts()

Returns:

entry point to managing storage accounts

storageUsages

public Usages storageUsages()

Returns:

entry point to managing storage account usages

subscriptionId

public String subscriptionId()

Returns:

the currently selected subscription ID this client is authenticated to work with

subscriptions

public Subscriptions subscriptions()

Returns:

subscriptions that this authenticated client has access to

trafficManagerProfiles

public TrafficManagerProfiles trafficManagerProfiles()

Returns:

entry point to managing traffic manager profiles.

vaults

public Vaults vaults()

Returns:

entry point to managing key vaults

virtualMachineCustomImages

public VirtualMachineCustomImages virtualMachineCustomImages()

Returns:

entry point to managing virtual machine custom images

virtualMachineImages

public VirtualMachineImages virtualMachineImages()

Returns:

entry point to managing virtual machine images

virtualMachines

public VirtualMachines virtualMachines()

Returns:

entry point to managing virtual machines

virtualMachineScaleSets

public VirtualMachineScaleSets virtualMachineScaleSets()

Returns:

entry point to managing virtual machine scale sets.

virtualNetworkGateways

public VirtualNetworkGateways virtualNetworkGateways()

Returns:

entry point to managing virtual network gateways

webApps

public WebApps webApps()

Returns:

entry point to managing web apps.

Applies to