Versions in this module Expand all Collapse all v1 v1.0.0 Oct 28, 2020 Changes in this version + const AuthFromEnvClient + const AuthFromEnvTenant + const AuthFromFile + const AzureResGroupName + const AzureSubscriptionID + func AvailabilitySetExists(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) bool + func AvailabilitySetExistsE(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) (bool, error) + func CheckAvailabilitySetContainsVM(t testing.TestingT, vmName string, avsName string, resGroupName string, ...) bool + func CheckAvailabilitySetContainsVME(t testing.TestingT, vmName string, avsName string, resGroupName string, ...) (bool, error) + func CheckPublicDNSNameAvailability(t testing.TestingT, location string, domainNameLabel string, ...) bool + func CheckPublicDNSNameAvailabilityE(location string, domainNameLabel string, subscriptionID string) (bool, error) + func CheckSubnetContainsIP(t testing.TestingT, IP string, subnetName string, vnetName string, ...) bool + func CheckSubnetContainsIPE(ipAddress string, subnetName string, vnetName string, resGroupName string, ...) (bool, error) + func DiskExists(t testing.TestingT, diskName string, resGroupName string, ...) bool + func DiskExistsE(diskName string, resGroupName string, subscriptionID string) (bool, error) + func GetActionGroupResource(t *testing.T, ruleName string, resGroupName string, subscriptionID string) *insights.ActionGroupResource + func GetActionGroupResourceE(ruleName string, resGroupName string, subscriptionID string) (*insights.ActionGroupResource, error) + func GetAllAzureRegions(t testing.TestingT, subscriptionID string) []string + func GetAllAzureRegionsE(t testing.TestingT, subscriptionID string) ([]string, error) + func GetAvailabilitySetClientE(subscriptionID string) (*compute.AvailabilitySetsClient, error) + func GetAvailabilitySetE(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) (*compute.AvailabilitySet, error) + func GetAvailabilitySetFaultDomainCount(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) int32 + func GetAvailabilitySetFaultDomainCountE(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) (int32, error) + func GetAvailabilitySetVMNamesInCaps(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) []string + func GetAvailabilitySetVMNamesInCapsE(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) ([]string, error) + func GetCustomNsgRulesClient(t *testing.T, subscriptionID string) network.SecurityRulesClient + func GetCustomNsgRulesClientE(subscriptionID string) (network.SecurityRulesClient, error) + func GetDatabaseClient(subscriptionID string) (*sql.DatabasesClient, error) + func GetDefaultNsgRulesClient(t *testing.T, subscriptionID string) network.DefaultSecurityRulesClient + func GetDefaultNsgRulesClientE(subscriptionID string) (network.DefaultSecurityRulesClient, error) + func GetDisk(t testing.TestingT, diskName string, resGroupName string, ...) *compute.Disk + func GetDiskClientE(subscriptionID string) (*compute.DisksClient, error) + func GetDiskE(diskName string, resGroupName string, subscriptionID string) (*compute.Disk, error) + func GetIPOfPublicIPAddressByName(t testing.TestingT, publicAddressName string, resGroupName string, ...) string + func GetIPOfPublicIPAddressByNameE(publicAddressName string, resGroupName string, subscriptionID string) (string, error) + func GetManagedClusterE(t testing.TestingT, resourceGroupName, clusterName, subscriptionID string) (*containerservice.ManagedCluster, error) + func GetManagedClustersClientE(subscriptionID string) (*containerservice.ManagedClustersClient, error) + func GetNameFromResourceID(resourceID string) string + func GetNameFromResourceIDE(resourceID string) (string, error) + func GetNetworkInterfaceClientE(subscriptionID string) (*network.InterfacesClient, error) + func GetNetworkInterfaceConfigurationClientE(subscriptionID string) (*network.InterfaceIPConfigurationsClient, error) + func GetNetworkInterfaceConfigurationE(nicName string, nicConfigName string, resGroupName string, ...) (*network.InterfaceIPConfiguration, error) + func GetNetworkInterfaceE(nicName string, resGroupName string, subscriptionID string) (*network.Interface, error) + func GetNetworkInterfacePrivateIPs(t testing.TestingT, nicName string, resGroupName string, subscriptionID string) []string + func GetNetworkInterfacePrivateIPsE(nicName string, resGroupName string, subscriptionID string) ([]string, error) + func GetNetworkInterfacePublicIPs(t testing.TestingT, nicName string, resGroupName string, subscriptionID string) []string + func GetNetworkInterfacePublicIPsE(nicName string, resGroupName string, subscriptionID string) ([]string, error) + func GetPublicIPAddressClientE(subscriptionID string) (*network.PublicIPAddressesClient, error) + func GetPublicIPAddressE(publicIPAddressName string, resGroupName string, subscriptionID string) (*network.PublicIPAddress, error) + func GetRandomRegion(t testing.TestingT, approvedRegions []string, forbiddenRegions []string, ...) string + func GetRandomRegionE(t testing.TestingT, approvedRegions []string, forbiddenRegions []string, ...) (string, error) + func GetRandomStableRegion(t testing.TestingT, approvedRegions []string, forbiddenRegions []string, ...) string + func GetResourceGroupClientE(subscriptionID string) (*resources.GroupsClient, error) + func GetResourceGroupE(resourceGroupName, subscriptionID string) (bool, error) + func GetSQLDatabase(t testing.TestingT, resGroupName string, serverName string, dbName string, ...) *sql.Database + func GetSQLDatabaseE(t testing.TestingT, subscriptionID string, resGroupName string, ...) (*sql.Database, error) + func GetSQLServer(t testing.TestingT, resGroupName string, serverName string, ...) *sql.Server + func GetSQLServerClient(subscriptionID string) (*sql.ServersClient, error) + func GetSQLServerE(t testing.TestingT, subscriptionID string, resGroupName string, ...) (*sql.Server, error) + func GetSizeOfVirtualMachine(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) compute.VirtualMachineSizeTypes + func GetSizeOfVirtualMachineE(vmName string, resGroupName string, subscriptionID string) (compute.VirtualMachineSizeTypes, error) + func GetSubnetClientE(subscriptionID string) (*network.SubnetsClient, error) + func GetSubnetE(subnetName string, vnetName string, resGroupName string, subscriptionID string) (*network.Subnet, error) + func GetSubscriptionClient() (*subscriptions.Client, error) + func GetTargetAzureResourceGroupName(resourceGroupName string) (string, error) + func GetTargetAzureSubscription(subscriptionID string) (string, error) + func GetVirtualMachine(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) *compute.VirtualMachine + func GetVirtualMachineAvailabilitySetID(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) string + func GetVirtualMachineAvailabilitySetIDE(vmName string, resGroupName string, subscriptionID string) (string, error) + func GetVirtualMachineClientE(subscriptionID string) (*compute.VirtualMachinesClient, error) + func GetVirtualMachineE(vmName string, resGroupName string, subscriptionID string) (*compute.VirtualMachine, error) + func GetVirtualMachineManagedDisks(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) []string + func GetVirtualMachineManagedDisksE(vmName string, resGroupName string, subscriptionID string) ([]string, error) + func GetVirtualMachineNics(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) []string + func GetVirtualMachineNicsE(vmName string, resGroupName string, subscriptionID string) ([]string, error) + func GetVirtualMachineOSDiskName(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) string + func GetVirtualMachineOSDiskNameE(vmName string, resGroupName string, subscriptionID string) (string, error) + func GetVirtualMachineTags(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) map[string]string + func GetVirtualMachineTagsE(vmName string, resGroupName string, subscriptionID string) (map[string]string, error) + func GetVirtualMachinesForResourceGroup(t testing.TestingT, resGroupName string, subscriptionID string) map[string]compute.VirtualMachineProperties + func GetVirtualMachinesForResourceGroupE(resourceGroupName string, subscriptionID string) (map[string]compute.VirtualMachineProperties, error) + func GetVirtualNetworkDNSServerIPs(t testing.TestingT, vnetName string, resGroupName string, ...) []string + func GetVirtualNetworkDNSServerIPsE(vnetName string, resGroupName string, subscriptionID string) ([]string, error) + func GetVirtualNetworkE(vnetName string, resGroupName string, subscriptionID string) (*network.VirtualNetwork, error) + func GetVirtualNetworkSubnets(t testing.TestingT, vnetName string, resGroupName string, ...) map[string]string + func GetVirtualNetworkSubnetsE(vnetName string, resGroupName string, subscriptionID string) (map[string]string, error) + func GetVirtualNetworksClientE(subscriptionID string) (*network.VirtualNetworksClient, error) + func ListSQLServerDatabases(t testing.TestingT, resGroupName string, serverName string, ...) *[]sql.Database + func ListSQLServerDatabasesE(t testing.TestingT, resGroupName string, serverName string, ...) (*[]sql.Database, error) + func ListVirtualMachinesForResourceGroup(t testing.TestingT, resGroupName string, subscriptionID string) []string + func ListVirtualMachinesForResourceGroupE(resourceGroupName string, subscriptionID string) ([]string, error) + func NetworkInterfaceExists(t testing.TestingT, nicName string, resGroupName string, subscriptionID string) bool + func NetworkInterfaceExistsE(nicName string, resGroupName string, subscriptionID string) (bool, error) + func NewAuthorizer() (*autorest.Authorizer, error) + func PublicAddressExists(t testing.TestingT, publicAddressName string, resGroupName string, ...) bool + func PublicAddressExistsE(publicAddressName string, resGroupName string, subscriptionID string) (bool, error) + func ResourceGroupExists(t *testing.T, resourceGroupName string, subscriptionID string) bool + func ResourceGroupExistsE(resourceGroupName, subscriptionID string) (bool, error) + func ResourceNotFoundErrorExists(err error) bool + func SubnetExists(t testing.TestingT, subnetName string, vnetName string, resGroupName string, ...) bool + func SubnetExistsE(subnetName string, vnetName string, resGroupName string, subscriptionID string) (bool, error) + func VirtualMachineExists(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) bool + func VirtualMachineExistsE(vmName string, resGroupName string, subscriptionID string) (bool, error) + func VirtualNetworkExists(t testing.TestingT, vnetName string, resGroupName string, ...) bool + func VirtualNetworkExistsE(vnetName string, resGroupName string, subscriptionID string) (bool, error) + type FailedToParseError struct + func NewFailedToParseError(objectType string, objectID string) FailedToParseError + func (err FailedToParseError) Error() string + type Instance struct + func (vm *Instance) GetVirtualMachineInstanceSize() compute.VirtualMachineSizeTypes + type NotFoundError struct + func NewNotFoundError(objectType string, objectID string, region string) NotFoundError + func (err NotFoundError) Error() string + type NsgRuleSummary struct + Access string + Description string + DestinationAddressPrefix string + DestinationPortRange string + Direction string + Name string + Priority int32 + Protocol string + SourceAddressPrefix string + SourcePortRange string + func (summarizedRule *NsgRuleSummary) AllowsDestinationPort(t *testing.T, port string) bool + func (summarizedRule *NsgRuleSummary) AllowsSourcePort(t *testing.T, port string) bool + type NsgRuleSummaryList struct + SummarizedRules []NsgRuleSummary + func GetAllNSGRules(t *testing.T, resourceGroupName, nsgName, subscriptionID string) NsgRuleSummaryList + func GetAllNSGRulesE(resourceGroupName, nsgName, subscriptionID string) (NsgRuleSummaryList, error) + func (summarizedRules *NsgRuleSummaryList) FindRuleByName(name string) NsgRuleSummary + type ResourceGroupNameNotFound struct + func (err ResourceGroupNameNotFound) Error() string + type SubscriptionIDNotFound struct + func (err SubscriptionIDNotFound) Error() string + type VMImage struct + Offer string + Publisher string + SKU string + Version string + func GetVirtualMachineImage(t testing.TestingT, vmName string, resGroupName string, subscriptionID string) VMImage + func GetVirtualMachineImageE(vmName string, resGroupName string, subscriptionID string) (VMImage, error)