/// <summary> /// The Add Service Certificate operation adds a certificate to a /// hosted service. The Add Service Certificate operation is an /// asynchronous operation. To determine whether the management /// service has finished processing the request, call Get Operation /// Status. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460817.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations. /// </param> /// <param name='serviceName'> /// The DNS prefix name of your service. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Service Certificate operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static OperationResponse BeginCreating(this IServiceCertificateOperations operations, string serviceName, ServiceCertificateCreateParameters parameters) { try { return operations.BeginCreatingAsync(serviceName, parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Preview Only. The Create Reserved IP operation creates a reserved /// IP from your the subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Virtual Machine Image operation. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static VirtualNetworkOperationStatusResponse BeginCreating(this IReservedIPOperations operations, NetworkReservedIPCreateParameters parameters) { try { return operations.BeginCreatingAsync(parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Create Storage Account operation creates a new storage account /// in Windows Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Storage Account operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static OperationResponse BeginCreating(this IStorageAccountOperations operations, StorageAccountCreateParameters parameters) { try { return operations.BeginCreatingAsync(parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Create a job collection. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service containing the job collection. /// </param> /// <param name='jobCollectionName'> /// The name of the job collection to create. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Job Collection operation. /// </param> /// <returns> /// The Create Job Collection operation response. /// </returns> public static JobCollectionCreateResponse BeginCreating(this IJobCollectionOperations operations, string cloudServiceName, string jobCollectionName, JobCollectionCreateParameters parameters) { try { return operations.BeginCreatingAsync(cloudServiceName, jobCollectionName, parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Create Cloud Service operation creates a Windows Azure cloud /// service in a Windows Azure subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Store.ICloudServiceOperations. /// </param> /// <param name='parameters'> /// Parameters used to specify how the Create procedure will function. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static AddOnOperationStatusResponse BeginCreating(this ICloudServiceOperations operations, CloudServiceCreateParameters parameters) { try { return operations.BeginCreatingAsync(parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Create Store Item operation creates Windows Azure Store entries /// in a Windows Azure subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Store.IAddOnOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service to which this store item will be /// assigned. /// </param> /// <param name='resourceName'> /// The name of this resource. /// </param> /// <param name='addOnName'> /// The add on name. /// </param> /// <param name='parameters'> /// Parameters used to specify how the Create procedure will function. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static AddOnOperationStatusResponse BeginCreating(this IAddOnOperations operations, string cloudServiceName, string resourceName, string addOnName, AddOnCreateParameters parameters) { try { return operations.BeginCreatingAsync(cloudServiceName, resourceName, addOnName, parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Add Role operation adds a virtual machine to an existing /// deployment. You can refer to the OSDisk in the Add Role operation /// in the following ways. Platform/User Image – Set the /// SourceImageName to a platform or user image. You can optionally /// specify the DiskName and MediaLink values as part the operation to /// control the name and location of target disk. When DiskName and /// MediaLink are specified in this mode, they must not already exist /// in the system, otherwise a conflict fault is returned. UserDisk – /// Set DiskName to a user supplied image in image repository. /// SourceImageName must be set to NULL. All other properties are /// ignored. Blob in a Storage Account – Set MediaLink to a blob /// containing the image. SourceImageName and DiskName are set to /// NULL. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157186.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations. /// </param> /// <param name='serviceName'> /// The name of your service. /// </param> /// <param name='deploymentName'> /// The name of your deployment. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Virtual Machine operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static OperationResponse BeginCreating(this IVirtualMachineOperations operations, string serviceName, string deploymentName, VirtualMachineCreateParameters parameters) { try { return operations.BeginCreatingAsync(serviceName, deploymentName, parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Creates a new Network Security Group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Create Network Security Group /// operation. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<OperationStatusResponse> BeginCreatingAsync(this INetworkSecurityGroupOperations operations, NetworkSecurityGroupCreateParameters parameters) { return operations.BeginCreatingAsync(parameters, CancellationToken.None); }
/// <summary> /// Creates a profile /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IPolicyOperations. /// </param> /// <param name='policyName'> /// Required. Policy Name. /// </param> /// <param name='input'> /// Required. Input to create profile /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginCreatingAsync(this IPolicyOperations operations, string policyName, CreatePolicyInput input, CustomRequestHeaders customRequestHeaders) { return operations.BeginCreatingAsync(policyName, input, customRequestHeaders, CancellationToken.None); }
/// <summary> /// The Create VM Image operation creates a VM image that in your image /// repository. (see /// http://msdn.microsoft.com/en-us/library/azure/dn775054.aspx for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineVMImageOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the virtual machine VM image /// create operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<AzureOperationResponse> BeginCreatingAsync(this IVirtualMachineVMImageOperations operations, VirtualMachineVMImageCreateParameters parameters) { return operations.BeginCreatingAsync(parameters, CancellationToken.None); }
/// <summary> /// Creates a vault /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.RecoveryServices.IVaultOperations. /// </param> /// <param name='cloudServiceName'> /// Required. The name of the cloud service containing the job /// collection. /// </param> /// <param name='vaultName'> /// Required. The name of the vault to create. /// </param> /// <param name='vaultCreationInput'> /// Required. Vault object to be created /// </param> /// <returns> /// The response model for the Vm group object. /// </returns> public static Task<VaultCreateResponse> BeginCreatingAsync(this IVaultOperations operations, string cloudServiceName, string vaultName, VaultCreateArgs vaultCreationInput) { return operations.BeginCreatingAsync(cloudServiceName, vaultName, vaultCreationInput, CancellationToken.None); }
/// <summary> /// The Create Cloud Service operation creates a Windows Azure cloud /// service in a Windows Azure subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Store.ICloudServiceOperations. /// </param> /// <param name='parameters'> /// Parameters used to specify how the Create procedure will function. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<AddOnOperationStatusResponse> BeginCreatingAsync(this ICloudServiceOperations operations, CloudServiceCreateParameters parameters) { return operations.BeginCreatingAsync(parameters, CancellationToken.None); }
/// <summary> /// Creates a recovery plan. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IRecoveryPlanOperations. /// </param> /// <param name='recoveryPlanName'> /// Required. Recovery plan name. /// </param> /// <param name='input'> /// Required. Create recovery plan input. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginCreatingAsync(this IRecoveryPlanOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input, CustomRequestHeaders customRequestHeaders) { return operations.BeginCreatingAsync(recoveryPlanName, input, customRequestHeaders, CancellationToken.None); }
/// <summary> /// The Begin Creating Storage Account operation creates a new storage /// account in Azure. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.StorSimple.IServiceConfigurationOperations. /// </param> /// <param name='serviceConfiguration'> /// Required. Parameters supplied to the Begin Creating Storage Account /// operation. /// </param> /// <param name='customRequestHeaders'> /// Required. The Custom Request Headers which client must use. /// </param> /// <returns> /// This is the Task Response for all Async Calls /// </returns> public static Task<TaskResponse> BeginCreatingAsync(this IServiceConfigurationOperations operations, ServiceConfiguration serviceConfiguration, CustomRequestHeaders customRequestHeaders) { return operations.BeginCreatingAsync(serviceConfiguration, customRequestHeaders, CancellationToken.None); }
/// <summary> /// The Begin Creating Service Certificate operation adds a certificate /// to a hosted service. This operation is an asynchronous operation. /// To determine whether the management service has finished /// processing the request, call Get Operation Status. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460817.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations. /// </param> /// <param name='serviceName'> /// Required. The DNS prefix name of your service. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Creating Service /// Certificate operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<AzureOperationResponse> BeginCreatingAsync(this IServiceCertificateOperations operations, string serviceName, ServiceCertificateCreateParameters parameters) { return operations.BeginCreatingAsync(serviceName, parameters, CancellationToken.None); }
/// <summary> /// The Add Role operation adds a virtual machine to an existing /// deployment. You can refer to the OSDisk in the Add Role operation /// in the following ways. Platform/User Image – Set the /// SourceImageName to a platform or user image. You can optionally /// specify the DiskName and MediaLink values as part the operation to /// control the name and location of target disk. When DiskName and /// MediaLink are specified in this mode, they must not already exist /// in the system, otherwise a conflict fault is returned. UserDisk – /// Set DiskName to a user supplied image in image repository. /// SourceImageName must be set to NULL. All other properties are /// ignored. Blob in a Storage Account – Set MediaLink to a blob /// containing the image. SourceImageName and DiskName are set to /// NULL. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157186.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations. /// </param> /// <param name='serviceName'> /// The name of your service. /// </param> /// <param name='deploymentName'> /// The name of your deployment. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Virtual Machine operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<OperationResponse> BeginCreatingAsync(this IVirtualMachineOperations operations, string serviceName, string deploymentName, VirtualMachineCreateParameters parameters) { return operations.BeginCreatingAsync(serviceName, deploymentName, parameters, CancellationToken.None); }
/// <summary> /// The Begin Creating Deployment operation uploads a new service /// package and creates a new deployment in the staging or production /// environments. This operation is an asynchronous operation. To /// determine whether the management service has finished processing /// the request, call Get Operation Status. For more information on /// asynchronous operations, see Tracking Asynchronous Service /// Management Requests at /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460813.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations. /// </param> /// <param name='serviceName'> /// Required. The cloud service to create a deployment for. /// </param> /// <param name='deploymentSlot'> /// Required. The slot to create a deployment for. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Creating Deployment /// operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<AzureOperationResponse> BeginCreatingAsync(this IDeploymentOperations operations, string serviceName, DeploymentSlot deploymentSlot, DeploymentCreateParameters parameters) { return operations.BeginCreatingAsync(serviceName, deploymentSlot, parameters, CancellationToken.None); }
/// <summary> /// Begin creating the batch account.To determine whether the operation /// has finished processing the request, call /// GetLongRunningOperationStatus. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Batch.IAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group that contains the new /// Batch account. /// </param> /// <param name='accountName'> /// Required. A name for the Batch account which must be unique within /// Azure. Batch account names must be between 3 and 24 characters in /// length and must use only numbers and lower-case letters. This name /// is used as part of the DNS name that is used to access the batch /// service in the region in which the account is created. For /// example: http://AccountName.batch.core.windows.net/. /// </param> /// <param name='parameters'> /// Required. Additional parameters for account creation /// </param> /// <returns> /// Values returned by the Create operation. /// </returns> public static Task<BatchAccountCreateResponse> BeginCreatingAsync(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountCreateParameters parameters) { return operations.BeginCreatingAsync(resourceGroupName, accountName, parameters, CancellationToken.None); }
/// <summary> /// The Create Store Item operation creates Windows Azure Store entries /// in a Windows Azure subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Store.IAddOnOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service to which this store item will be /// assigned. /// </param> /// <param name='resourceName'> /// The name of this resource. /// </param> /// <param name='addOnName'> /// The add on name. /// </param> /// <param name='parameters'> /// Parameters used to specify how the Create procedure will function. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<AddOnOperationStatusResponse> BeginCreatingAsync(this IAddOnOperations operations, string cloudServiceName, string resourceName, string addOnName, AddOnCreateParameters parameters) { return operations.BeginCreatingAsync(cloudServiceName, resourceName, addOnName, parameters, CancellationToken.None); }
/// <summary> /// The Create Virtual network Gateway operation creates a new network /// gateways account in Windows Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154119.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.VirtualNetworks.IGatewayOperations. /// </param> /// <param name='virtualNetworkName'> /// The name of the virtual network for this gateway. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Virtual Network Gateway operation. /// </param> /// <returns> /// A standard storage response including an HTTP status code and /// request ID. /// </returns> public static GatewayOperationResponse BeginCreating(this IGatewayOperations operations, string virtualNetworkName, GatewayCreateParameters parameters) { try { return operations.BeginCreatingAsync(virtualNetworkName, parameters).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Preview Only. The Create Reserved IP operation creates a reserved /// IP from your the subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Virtual Machine Image operation. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<VirtualNetworkOperationStatusResponse> BeginCreatingAsync(this IReservedIPOperations operations, NetworkReservedIPCreateParameters parameters) { return operations.BeginCreatingAsync(parameters, CancellationToken.None); }
/// <summary> /// Begins creating a new HDInsight cluster with the specified /// parameters. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.HDInsight.IClusterOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='clusterName'> /// Required. The name of the cluster. /// </param> /// <param name='clusterCreateParameters'> /// Required. The cluster create request. /// </param> /// <returns> /// The CreateCluster operation response. /// </returns> public static Task<ClusterCreateResponse> BeginCreatingAsync(this IClusterOperations operations, string resourceGroupName, string clusterName, ClusterCreateParametersExtended clusterCreateParameters) { return operations.BeginCreatingAsync(resourceGroupName, clusterName, clusterCreateParameters, CancellationToken.None); }
/// <summary> /// Add an internal load balancer to a an existing deployment. When /// used by an input endpoint, the internal load balancer will provide /// an additional private VIP that can be used for load balancing to /// the roles in this deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Create Load Balancer operation. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request and error information regarding /// the failure. /// </returns> public static Task<OperationStatusResponse> BeginCreatingAsync(this ILoadBalancerOperations operations, string serviceName, string deploymentName, LoadBalancerCreateParameters parameters) { return operations.BeginCreatingAsync(serviceName, deploymentName, parameters, CancellationToken.None); }
/// <summary> /// The Begin Creating Volume operation creates a new volume. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.StorSimple.IVirtualDiskOperations. /// </param> /// <param name='deviceId'> /// Required. device id /// </param> /// <param name='diskDetails'> /// Required. Parameters supplied to the Create virtual disk operation. /// </param> /// <param name='customRequestHeaders'> /// Required. The Custom Request Headers which client must use. /// </param> /// <returns> /// This is the Task Response for all Async Calls /// </returns> public static Task<GuidTaskResponse> BeginCreatingAsync(this IVirtualDiskOperations operations, string deviceId, VirtualDiskRequest diskDetails, CustomRequestHeaders customRequestHeaders) { return operations.BeginCreatingAsync(deviceId, diskDetails, customRequestHeaders, CancellationToken.None); }
/// <summary> /// Create a job collection. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service containing the job collection. /// </param> /// <param name='jobCollectionName'> /// The name of the job collection to create. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Job Collection operation. /// </param> /// <returns> /// The Create Job Collection operation response. /// </returns> public static Task<JobCollectionCreateResponse> BeginCreatingAsync(this IJobCollectionOperations operations, string cloudServiceName, string jobCollectionName, JobCollectionCreateParameters parameters) { return operations.BeginCreatingAsync(cloudServiceName, jobCollectionName, parameters, CancellationToken.None); }
/// <summary> /// Create a cloud service. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.ICloudServiceOperations. /// </param> /// <param name='cloudServiceName'> /// The cloud service name. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create cloud service operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<OperationResponse> BeginCreatingAsync(this ICloudServiceOperations operations, string cloudServiceName, CloudServiceCreateParameters parameters) { return operations.BeginCreatingAsync(cloudServiceName, parameters, CancellationToken.None); }
/// <summary> /// The Begin Creating Virtual network Gateway operation creates a new /// network gateway for the specified virtual network in Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154119.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations. /// </param> /// <param name='networkName'> /// Required. The name of the virtual network for this gateway. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Creating Virtual Network /// Gateway operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<GatewayOperationResponse> BeginCreatingAsync(this IGatewayOperations operations, string networkName, GatewayCreateParameters parameters) { return operations.BeginCreatingAsync(networkName, parameters, CancellationToken.None); }
/// <summary> /// Creates a vCenter /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IVCenterOperations. /// </param> /// <param name='fabricName'> /// Required. Fabric Name. /// </param> /// <param name='vCenterName'> /// Required. vCenter Name. /// </param> /// <param name='input'> /// Required. Input to create vCenter. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginCreatingAsync(this IVCenterOperations operations, string fabricName, string vCenterName, CreateVCenterInput input, CustomRequestHeaders customRequestHeaders) { return operations.BeginCreatingAsync(fabricName, vCenterName, input, customRequestHeaders, CancellationToken.None); }
/// <summary> /// The Begin Creating Storage Account operation creates a new storage /// account in Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Creating Storage Account /// operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<AzureOperationResponse> BeginCreatingAsync(this IStorageAccountOperations operations, StorageAccountCreateParameters parameters) { return operations.BeginCreatingAsync(parameters, CancellationToken.None); }
/// <summary> /// Creates Network Mapping. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.INetworkMappingOperations. /// </param> /// <param name='fabricName'> /// Required. Fabric Name. /// </param> /// <param name='primaryNetworkName'> /// Required. Primary Network Name. /// </param> /// <param name='networkMappingName'> /// Required. Network Mapping Name. /// </param> /// <param name='input'> /// Required. Network Mapping input. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginCreatingAsync(this INetworkMappingOperations operations, string fabricName, string primaryNetworkName, string networkMappingName, CreateNetworkMappingInput input, CustomRequestHeaders customRequestHeaders) { return operations.BeginCreatingAsync(fabricName, primaryNetworkName, networkMappingName, input, customRequestHeaders, CancellationToken.None); }