Set-AzNetworkManagerVerifierWorkspace
Så här uppdaterar du arbetsytan för nätverkshanterarens kontrollant.
Syntax
Set-AzNetworkManagerVerifierWorkspace
-InputObject <PSVerifierWorkspace>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set-AzNetworkManagerVerifierWorkspace cmdlet kan information om en arbetsyta för nätverkshanterarens kontrollant uppdateras
Exempel
Exempel 1
$verifierWorkspace = Get-AzNetworkManagerVerifierWorkspace -ResourceGroupName "testRG" -NetworkManagerName "testNM" -Name "AmeWorkspace"
$verifierWorkspace.Properties.Description = "Updated description"
Set-AzNetworkManagerVerifierWorkspace -InputObject $verifierWorkspace
Location : eastus2euap
Tags : {}
Properties : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSVerifierWorkspaceProperties
TagsTable :
PropertiesText : {
"ProvisioningState": "Succeeded",
"Description": "Updated description"
}
Name : AmeWorkspace
ResourceGroupName : testRG
NetworkManagerName : testNM
Type : Microsoft.Network/networkManagers/verifierWorkspaces
SystemData : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSSystemData
SystemDataText : {
"CreatedBy": "test@email.com",
"CreatedByType": "User",
"CreatedAt": "2024-04-08T22:14:28.9064474Z",
"LastModifiedBy": "test@email.com",
"LastModifiedByType": "User",
"LastModifiedAt": "2024-10-15T17:48:28.0902461Z"
}
Id : /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/testRG/providers/Microsoft.Network/networkManagers/testNM/verifierWorkspaces/AmeWorkspace
Ändrade beskrivningen av kontrollantarbetsytan "AmeWorkspace" till "Uppdaterad beskrivning"
Exempel 2
$verifierWorkspace = Get-AzNetworkManagerVerifierWorkspace -ResourceGroupName "testRG" -NetworkManagerName "testNM" -Name "testVerifierWorkspace5"
$tags = [System.Collections.Generic.Dictionary[string, string]]::new()
$tags.Add("testTag", "test")
$verifierWorkspace.Tags = $tags
Set-AzNetworkManagerVerifierWorkspace -InputObject $verifierWorkspace
Location : eastus2euap
Tags : {[testTag, test]}
Properties : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSVerifierWorkspaceProperties
TagsTable :
Name Value
===== =====
testTag test
PropertiesText : {
"ProvisioningState": "Succeeded",
"Description": "string"
}
Name : testVerifierWorkspace5
ResourceGroupName : testRG
NetworkManagerName : testNM
Type : Microsoft.Network/networkManagers/verifierWorkspaces
SystemData : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSSystemData
SystemDataText : {
"CreatedBy": "test@email.com",
"CreatedByType": "User",
"CreatedAt": "2024-01-30T16:25:07.4175577Z",
"LastModifiedBy": "test@email.com",
"LastModifiedByType": "User",
"LastModifiedAt": "2024-10-15T18:00:26.5078204Z"
}
Id : /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/testRG/providers/Microsoft.Network/networkManagers/testNM/verifierWorkspaces/testVerifierWorkspace5
Taggen med namnet "testTag" och värdet "test" har lagts till i verifierarbetsytan "testVerifierWorkspace5"
Parametrar
-AsJob
Kör cmdlet i bakgrunden
Typ: | SwitchParameter |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Typ: | SwitchParameter |
Alias: | cf |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-InputObject
Verifierararbetsytan
Typ: | PSVerifierWorkspace |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-WhatIf
Visar vad som skulle hända om cmdleten körs. Cmdleten körs inte.
Typ: | SwitchParameter |
Alias: | wi |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
Utdata
Relaterade länkar
Azure PowerShell