共用方式為


Update-AzMlWebService

更新現有 Web 服務資源的屬性。

語法

Update-AzMlWebService
      -ResourceGroupName <String>
      -Name <String>
      [-Title <String>]
      [-Description <String>]
      [-IsReadOnly]
      [-Keys <WebServiceKeys>]
      [-StorageAccountKey <String>]
      [-Diagnostics <DiagnosticsConfiguration>]
      [-RealtimeConfiguration <RealtimeConfiguration>]
      [-Assets <Hashtable>]
      [-Input <ServiceInputOutputSpecification>]
      [-Output <ServiceInputOutputSpecification>]
      [-Parameters <Hashtable>]
      [-Package <GraphPackage>]
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzMlWebService
      -ResourceGroupName <String>
      -Name <String>
      -ServiceUpdates <WebService>
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Update-AzMlWebService Cmdlet 可讓您更新 Web 服務的非靜態屬性。 Cmdlet 可作為修補作業。 只傳遞您想要修改的屬性。

範例

範例 1:選擇性更新自變數

Update-AzMlWebService -ResourceGroupName "myresourcegroup" -Name "mywebservicename" -Description "new update to description" -Keys @{Primary='changed primary key'} -Diagnostics @{Level='All'}

在這裡,我們會變更描述、主要存取密鑰,並在 Web 服務運行時間期間啟用所有追蹤的診斷集合。

範例 2:根據 Web 服務實例更新

$updates = @{ Properties = @{ Title="New Title"; RealtimeConfiguration = @{ MaxConcurrentCalls=25 }}}

Update-AzMlWebService -ResourceGroupName "myresourcegroup" -Name "mywebservicename" -ServiceUpdates $updates

此範例會先建立 Web 服務定義,只包含要更新的欄位,然後呼叫 Update-AzMlWebService,以使用 ServiceUpdates 參數加以套用。

參數

-Assets

組成 Web 服務的資產集(例如模組、數據集)。

類型:Hashtable
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Description

Web 服務描述的新值。 這會顯示在服務的 Swagger API 架構中。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Diagnostics

控制 Web 服務的診斷追蹤集合的設定。

類型:Microsoft.Azure.Management.MachineLearning.WebServices.Models.DiagnosticsConfiguration
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Force

請勿要求確認。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Input

Web 服務輸入的定義,提供為 Swagger 架構建構。

類型:Microsoft.Azure.Management.MachineLearning.WebServices.Models.ServiceInputOutputSpecification
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-IsReadOnly

指定此 Web 服務是唯讀的。 設定之後,Web 服務可以更新更長的時間,包括變更此屬性的值,而且只能刪除。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Keys

更新一或兩個用來驗證服務運行時間 API 呼叫的存取金鑰。

類型:Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebServiceKeys
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

要更新之 Web 服務資源的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Output

Web 服務的輸出定義,提供為 Swagger 架構建構。

類型:Microsoft.Azure.Management.MachineLearning.WebServices.Models.ServiceInputOutputSpecification
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Package

定義此 Web 服務的圖形套件定義。

類型:Microsoft.Azure.Management.MachineLearning.WebServices.Models.GraphPackage
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Parameters

為 Web 服務定義的一組全域參數值,指定為全域參數名稱 -> 預設值集合。 如果未指定預設值,則會將 參數視為必要。

類型:Hashtable
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-RealtimeConfiguration

服務的即時端點設定更新。

類型:Microsoft.Azure.Management.MachineLearning.WebServices.Models.RealtimeConfiguration
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

包含要更新之 Web 服務的資源群組。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ServiceUpdates

要套用至提供做為 Web 服務定義實例之 Web 服務的一組更新。 只會修改非靜態欄位。

類型:Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-StorageAccountKey

輪替與 Web 服務相關聯的記憶體帳戶存取金鑰。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Title

Web 服務標題的新值。 這會顯示在服務的 Swagger API 架構中。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService

輸出

Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService

備註

關鍵詞:azure、azurerm、arm、resource、management、manager、machine、machine learning、azureml