Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts/v2
modulepackage
2.1.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Deployment Scripts Module for Go

PkgGoDev

The armdeploymentscripts module provides operations for working with Azure Deployment Scripts.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Deployment Scripts module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Deployment Scripts. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Deployment module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armdeploymentscripts.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armdeploymentscripts.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Deployment Scripts label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Packages

No description provided by the author

# Functions

NewClient creates a new instance of Client with the specified values.
NewClientFactory creates a new instance of ClientFactory with the specified values.
PossibleCleanupOptionsValues returns the possible values for the CleanupOptions const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
PossibleScriptProvisioningStateValues returns the possible values for the ScriptProvisioningState const type.
PossibleScriptTypeValues returns the possible values for the ScriptType const type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AzureCliScript - Object model for the Azure CLI script.
AzureCliScriptProperties - Properties of the Azure CLI script object.
AzurePowerShellScript - Object model for the Azure PowerShell script.
AzurePowerShellScriptProperties - Properties of the Azure PowerShell script object.
AzureResourceBase - Common properties for all Azure resources.
Client contains the methods for the DeploymentScripts group.
ClientBeginCreateOptions contains the optional parameters for the Client.BeginCreate method.
ClientCreateResponse contains the response from method Client.BeginCreate.
ClientDeleteOptions contains the optional parameters for the Client.Delete method.
ClientDeleteResponse contains the response from method Client.Delete.
ClientFactory is a client factory used to create any client in this module.
ClientGetLogsDefaultOptions contains the optional parameters for the Client.GetLogsDefault method.
ClientGetLogsDefaultResponse contains the response from method Client.GetLogsDefault.
ClientGetLogsOptions contains the optional parameters for the Client.GetLogs method.
ClientGetLogsResponse contains the response from method Client.GetLogs.
ClientGetOptions contains the optional parameters for the Client.Get method.
ClientGetResponse contains the response from method Client.Get.
ClientListByResourceGroupOptions contains the optional parameters for the Client.NewListByResourceGroupPager method.
ClientListByResourceGroupResponse contains the response from method Client.NewListByResourceGroupPager.
ClientListBySubscriptionOptions contains the optional parameters for the Client.NewListBySubscriptionPager method.
ClientListBySubscriptionResponse contains the response from method Client.NewListBySubscriptionPager.
ClientUpdateOptions contains the optional parameters for the Client.Update method.
ClientUpdateResponse contains the response from method Client.Update.
ContainerConfiguration - Settings to customize ACI container instance.
DeploymentScript - Deployment script object.
DeploymentScriptListResult - List of deployment scripts.
DeploymentScriptUpdateParameter - Deployment script parameters to be updated.
EnvironmentVariable - The environment variable to pass to the script in the container instance.
Error - Deployment scripts error response.
ErrorAdditionalInfo - The resource management error additional info.
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations.
LogProperties - Script log properties.
ManagedServiceIdentity - Managed identity generic object.
ScriptLog - Script execution log object.
ScriptLogsList - Deployment script execution logs.
ScriptStatus - Generic object modeling results of script execution.
StorageAccountConfiguration - Settings to use an existing storage account.
SystemData - Metadata pertaining to creation and last modification of the resource.
UserAssignedIdentity - User-assigned managed identity.

# Interfaces

DeploymentScriptClassification provides polymorphic access to related types.

# Type aliases

CleanupOptions - The clean up preference when the script execution gets in a terminal state.
CreatedByType - The type of identity that created the resource.
ManagedServiceIdentityType - Type of the managed identity.
ScriptProvisioningState - State of the script execution.
ScriptType - Type of the script.