Share via


VirtualMachineOSImageOperationsExtensions.BeginSharingAsync Method (IVirtualMachineOSImageOperations, String, String)

 

Share an already replicated OS image. This operation is only for publishers. You have to be registered as image publisher with Windows Azure to be able to call this.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

public static Task<AzureOperationResponse> BeginSharingAsync(
    this IVirtualMachineOSImageOperations operations,
    string imageName,
    string permission
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ BeginSharingAsync(
    IVirtualMachineOSImageOperations^ operations,
    String^ imageName,
    String^ permission
)
static member BeginSharingAsync : 
        operations:IVirtualMachineOSImageOperations *
        imageName:string *
        permission:string -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function BeginSharingAsync (
    operations As IVirtualMachineOSImageOperations,
    imageName As String,
    permission As String
) As Task(Of AzureOperationResponse)

Parameters

  • imageName
    Type: System.String

    Required. The name of the virtual machine image to share.

  • permission
    Type: System.String

    Required. The sharing permission: public, msdn, or private.

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

See Also

VirtualMachineOSImageOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top