Versions in this module Expand all Collapse all v0 v0.17.0 Aug 23, 2023 Changes in this version + func AuthenticateDeviceFlow(env azure.Environment, subscriptionID string) (*azure.ServicePrincipalToken, error) + func AuthenticateServicePrincipal(env azure.Environment, subscriptionID, spID, spPassword string) (*azure.ServicePrincipalToken, error) + type AzureClient struct + func New(env azure.Environment, subsID string, auth autorest.Authorizer) *AzureClient + func (a AzureClient) CleanupAvailabilitySetIfExists(resourceGroup, name string) error + func (a AzureClient) CleanupSubnetIfExists(resourceGroup, virtualNetwork, name string) error + func (a AzureClient) CleanupVirtualNetworkIfExists(resourceGroup, name string) error + func (a AzureClient) CreateAvailabilitySetIfNotExists(ctx *DeploymentContext, resourceGroup, name, location string) error + func (a AzureClient) CreateNetworkInterface(ctx *DeploymentContext, ...) error + func (a AzureClient) CreateNetworkSecurityGroup(ctx *DeploymentContext, resourceGroup, name, location string, ...) error + func (a AzureClient) CreatePublicIPAddress(ctx *DeploymentContext, resourceGroup, name, location string, isStatic bool, ...) error + func (a AzureClient) CreateResourceGroup(name, location string) error + func (a AzureClient) CreateStorageAccount(ctx *DeploymentContext, resourceGroup, location string, ...) error + func (a AzureClient) CreateSubnet(ctx *DeploymentContext, ...) error + func (a AzureClient) CreateVirtualMachine(...) error + func (a AzureClient) CreateVirtualNetworkIfNotExists(resourceGroup, name, location string) error + func (a AzureClient) DeleteNetworkInterfaceIfExists(resourceGroup, name string) error + func (a AzureClient) DeleteNetworkSecurityGroupIfExists(resourceGroup, name string) error + func (a AzureClient) DeletePublicIPAddressIfExists(resourceGroup, name string) error + func (a AzureClient) DeleteVirtualMachineIfExists(resourceGroup, name string) error + func (a AzureClient) GetAvailabilitySet(resourceGroup, name string) (compute.AvailabilitySet, error) + func (a AzureClient) GetPrivateIPAddress(resourceGroup, name string) (string, error) + func (a AzureClient) GetPublicIPAddress(resourceGroup, name string, useFqdn bool) (string, error) + func (a AzureClient) GetSubnet(resourceGroup, virtualNetwork, name string) (network.Subnet, error) + func (a AzureClient) GetVirtualMachinePowerState(resourceGroup, name string) (VMPowerState, error) + func (a AzureClient) RegisterResourceProviders(namespaces ...string) error + func (a AzureClient) RestartVirtualMachine(resourceGroup, name string) error + func (a AzureClient) StartVirtualMachine(resourceGroup, name string) error + func (a AzureClient) StopVirtualMachine(resourceGroup, name string) error + func (a AzureClient) VirtualMachineExists(resourceGroup, name string) (bool, error) + type DeploymentContext struct + AvailabilitySetID string + FirewallRules *[]network.SecurityRule + NetworkInterfaceID string + NetworkSecurityGroupID string + PublicIPAddressID string + SSHPublicKey string + StorageAccount *storage.AccountProperties + SubnetID string + VirtualNetworkExists bool + type ResourceNaming string + func (r ResourceNaming) IP() string + func (r ResourceNaming) NIC() string + func (r ResourceNaming) NSG() string + func (r ResourceNaming) VM() string + type VMPowerState string + const Deallocated + const Deallocating + const Running + const Starting + const Stopped + const Stopping + const Unknown