Interface VirtualNetworksClient

    • Method Detail

      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String virtualNetworkName)
        Deletes the specified virtual network.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String resourceGroupName,
                                                                                                                               String virtualNetworkName)
        Deletes the specified virtual network.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String virtualNetworkName)
        Deletes the specified virtual network.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String virtualNetworkName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes the specified virtual network.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String virtualNetworkName)
        Deletes the specified virtual network.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String virtualNetworkName)
        Deletes the specified virtual network.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String virtualNetworkName,
                    com.azure.core.util.Context context)
        Deletes the specified virtual network.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VirtualNetworkInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                         String virtualNetworkName,
                                                                                                         String expand)
        Gets the specified virtual network by resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        expand - Expands referenced resources.
        Returns:
        the specified virtual network by resource group along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<VirtualNetworkInner> getByResourceGroupAsync​(String resourceGroupName,
                                                          String virtualNetworkName,
                                                          String expand)
        Gets the specified virtual network by resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        expand - Expands referenced resources.
        Returns:
        the specified virtual network by resource group on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<VirtualNetworkInner> getByResourceGroupAsync​(String resourceGroupName,
                                                          String virtualNetworkName)
        Gets the specified virtual network by resource group.
        Specified by:
        getByResourceGroupAsync in interface InnerSupportsGet<VirtualNetworkInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        the specified virtual network by resource group on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroup

        VirtualNetworkInner getByResourceGroup​(String resourceGroupName,
                                               String virtualNetworkName)
        Gets the specified virtual network by resource group.
        Specified by:
        getByResourceGroup in interface InnerSupportsGet<VirtualNetworkInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        the specified virtual network by resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<VirtualNetworkInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                              String virtualNetworkName,
                                                                                              String expand,
                                                                                              com.azure.core.util.Context context)
        Gets the specified virtual network by resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        expand - Expands referenced resources.
        context - The context to associate with this operation.
        Returns:
        the specified virtual network by resource group along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String virtualNetworkName,
                                                                                                  VirtualNetworkInner parameters)
        Creates or updates a virtual network in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to the create or update virtual network operation.
        Returns:
        virtual Network resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualNetworkInner>,​VirtualNetworkInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                     String virtualNetworkName,
                                                                                                                                                                     VirtualNetworkInner parameters)
        Creates or updates a virtual network in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to the create or update virtual network operation.
        Returns:
        the PollerFlux for polling of virtual Network resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkInner>,​VirtualNetworkInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String virtualNetworkName,
                                                                                                                                                                VirtualNetworkInner parameters)
        Creates or updates a virtual network in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to the create or update virtual network operation.
        Returns:
        the SyncPoller for polling of virtual Network resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkInner>,​VirtualNetworkInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String virtualNetworkName,
                                                                                                                                                                VirtualNetworkInner parameters,
                                                                                                                                                                com.azure.core.util.Context context)
        Creates or updates a virtual network in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to the create or update virtual network operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of virtual Network resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<VirtualNetworkInner> createOrUpdateAsync​(String resourceGroupName,
                                                      String virtualNetworkName,
                                                      VirtualNetworkInner parameters)
        Creates or updates a virtual network in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to the create or update virtual network operation.
        Returns:
        virtual Network resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualNetworkInner createOrUpdate​(String resourceGroupName,
                                           String virtualNetworkName,
                                           VirtualNetworkInner parameters)
        Creates or updates a virtual network in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to the create or update virtual network operation.
        Returns:
        virtual Network resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualNetworkInner createOrUpdate​(String resourceGroupName,
                                           String virtualNetworkName,
                                           VirtualNetworkInner parameters,
                                           com.azure.core.util.Context context)
        Creates or updates a virtual network in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to the create or update virtual network operation.
        context - The context to associate with this operation.
        Returns:
        virtual Network resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTagsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VirtualNetworkInner>> updateTagsWithResponseAsync​(String resourceGroupName,
                                                                                                 String virtualNetworkName,
                                                                                                 TagsObject parameters)
        Updates a virtual network tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to update virtual network tags.
        Returns:
        virtual Network resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTagsAsync

        Mono<VirtualNetworkInner> updateTagsAsync​(String resourceGroupName,
                                                  String virtualNetworkName,
                                                  TagsObject parameters)
        Updates a virtual network tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to update virtual network tags.
        Returns:
        virtual Network resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTags

        VirtualNetworkInner updateTags​(String resourceGroupName,
                                       String virtualNetworkName,
                                       TagsObject parameters)
        Updates a virtual network tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to update virtual network tags.
        Returns:
        virtual Network resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTagsWithResponse

        com.azure.core.http.rest.Response<VirtualNetworkInner> updateTagsWithResponse​(String resourceGroupName,
                                                                                      String virtualNetworkName,
                                                                                      TagsObject parameters,
                                                                                      com.azure.core.util.Context context)
        Updates a virtual network tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        parameters - Parameters supplied to update virtual network tags.
        context - The context to associate with this operation.
        Returns:
        virtual Network resource along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAsync

        com.azure.core.http.rest.PagedFlux<VirtualNetworkInner> listAsync()
        Gets all virtual networks in a subscription.
        Specified by:
        listAsync in interface InnerSupportsListing<VirtualNetworkInner>
        Returns:
        all virtual networks in a subscription as paginated response with PagedFlux.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> list()
        Gets all virtual networks in a subscription.
        Specified by:
        list in interface InnerSupportsListing<VirtualNetworkInner>
        Returns:
        all virtual networks in a subscription as paginated response with PagedIterable.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> list​(com.azure.core.util.Context context)
        Gets all virtual networks in a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        all virtual networks in a subscription as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<VirtualNetworkInner> listByResourceGroupAsync​(String resourceGroupName)
        Gets all virtual networks in a resource group.
        Specified by:
        listByResourceGroupAsync in interface InnerSupportsListing<VirtualNetworkInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        all virtual networks in a resource group as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> listByResourceGroup​(String resourceGroupName)
        Gets all virtual networks in a resource group.
        Specified by:
        listByResourceGroup in interface InnerSupportsListing<VirtualNetworkInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        all virtual networks in a resource group as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> listByResourceGroup​(String resourceGroupName,
                                                                                        com.azure.core.util.Context context)
        Gets all virtual networks in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        all virtual networks in a resource group as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkIpAddressAvailabilityWithResponseAsync

        Mono<com.azure.core.http.rest.Response<IpAddressAvailabilityResultInner>> checkIpAddressAvailabilityWithResponseAsync​(String resourceGroupName,
                                                                                                                              String virtualNetworkName,
                                                                                                                              String ipAddress)
        Checks whether a private IP address is available for use.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        ipAddress - The private IP address to be verified.
        Returns:
        response for CheckIPAddressAvailability API service call along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkIpAddressAvailabilityAsync

        Mono<IpAddressAvailabilityResultInner> checkIpAddressAvailabilityAsync​(String resourceGroupName,
                                                                               String virtualNetworkName,
                                                                               String ipAddress)
        Checks whether a private IP address is available for use.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        ipAddress - The private IP address to be verified.
        Returns:
        response for CheckIPAddressAvailability API service call on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkIpAddressAvailability

        IpAddressAvailabilityResultInner checkIpAddressAvailability​(String resourceGroupName,
                                                                    String virtualNetworkName,
                                                                    String ipAddress)
        Checks whether a private IP address is available for use.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        ipAddress - The private IP address to be verified.
        Returns:
        response for CheckIPAddressAvailability API service call.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkIpAddressAvailabilityWithResponse

        com.azure.core.http.rest.Response<IpAddressAvailabilityResultInner> checkIpAddressAvailabilityWithResponse​(String resourceGroupName,
                                                                                                                   String virtualNetworkName,
                                                                                                                   String ipAddress,
                                                                                                                   com.azure.core.util.Context context)
        Checks whether a private IP address is available for use.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        ipAddress - The private IP address to be verified.
        context - The context to associate with this operation.
        Returns:
        response for CheckIPAddressAvailability API service call along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listUsageAsync

        com.azure.core.http.rest.PagedFlux<VirtualNetworkUsageInner> listUsageAsync​(String resourceGroupName,
                                                                                    String virtualNetworkName)
        Lists usage stats.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        response for the virtual networks GetUsage API service call as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listUsage

        com.azure.core.http.rest.PagedIterable<VirtualNetworkUsageInner> listUsage​(String resourceGroupName,
                                                                                   String virtualNetworkName)
        Lists usage stats.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        Returns:
        response for the virtual networks GetUsage API service call as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listUsage

        com.azure.core.http.rest.PagedIterable<VirtualNetworkUsageInner> listUsage​(String resourceGroupName,
                                                                                   String virtualNetworkName,
                                                                                   com.azure.core.util.Context context)
        Lists usage stats.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - The name of the virtual network.
        context - The context to associate with this operation.
        Returns:
        response for the virtual networks GetUsage API service call as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.