From 2382078170c07293aeb940cbafe1b8242b4c6ed4 Mon Sep 17 00:00:00 2001 From: vivsriaus Date: Wed, 27 May 2015 13:31:27 -0700 Subject: [PATCH 1/3] Add help for Set-AzureResource --- ...mands.ResourceManager.Cmdlets.dll-Help.xml | 787 ++++++++++++++++++ 1 file changed, 787 insertions(+) diff --git a/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml b/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml index 625240e694e9..021f38e0932d 100644 --- a/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml +++ b/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml @@ -5081,4 +5081,791 @@ + + + + Set-AzureResource + + Updates an existing azure resource. + + + + + Set + AzureResource + + + + Updates an existing azure resource. + + + + Set-AzureResource + + Kind + + The resource kind. + + String + + + Properties + + A hash table which represents resource properties. + + PSObject + + + Plan + + A hash table which represents resource plan properties. + + Hashtable + + + Tag + + A hash table which represents resource tags. + + Hashtable[] + + + UsePatchSemantics + + When set indicates if an HTTP PATCH should be used to update the object instead of PUT. + + SwitchParameter + + + OutputObjectFormat + + The output format of the resource properties. + + Nullable`1[ResourceObjectFormat] + + + ResourceId + + The fully qualified resource Id, including the subscription. e.g. /subscriptions/{subscriptionId}/providers/Microsoft.Sql/servers/myServer/databases/myDatabase + + String + + + ODataQuery + + An OData style filter which will be appended to the request in addition to any other filters. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + Set-AzureResource + + Kind + + The resource kind. + + String + + + Properties + + A hash table which represents resource properties. + + PSObject + + + Plan + + A hash table which represents resource plan properties. + + Hashtable + + + Tag + + A hash table which represents resource tags. + + Hashtable[] + + + UsePatchSemantics + + When set indicates if an HTTP PATCH should be used to update the object instead of PUT. + + SwitchParameter + + + OutputObjectFormat + + The output format of the resource properties. + + Nullable`1[ResourceObjectFormat] + + + ResourceName + + The resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + + ResourceType + + The resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + + ParentResource + + The parent resource type. e.g. Servers/myServer. + + String + + + ExtensionResourceName + + The extension resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + + ExtensionResourceType + + The extension resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + + ODataQuery + + An OData style filter which will be appended to the request in addition to any other filters. + + String + + + SubscriptionId + + The subscription to use. + + Nullable`1[Guid] + + + ResourceGroupName + + The resource group name. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + Set-AzureResource + + Kind + + The resource kind. + + String + + + Properties + + A hash table which represents resource properties. + + PSObject + + + Plan + + A hash table which represents resource plan properties. + + Hashtable + + + Tag + + A hash table which represents resource tags. + + Hashtable[] + + + UsePatchSemantics + + When set indicates if an HTTP PATCH should be used to update the object instead of PUT. + + SwitchParameter + + + OutputObjectFormat + + The output format of the resource properties. + + Nullable`1[ResourceObjectFormat] + + + ResourceName + + The resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + + ResourceType + + The resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + + ExtensionResourceName + + The extension resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + + ExtensionResourceType + + The extension resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + + ODataQuery + + An OData style filter which will be appended to the request in addition to any other filters. + + String + + + TenantLevel + + Indicates that this is a tenant level operation. + + SwitchParameter + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + Kind + + The resource kind. + + String + + String + + + + + + Properties + + A hash table which represents resource properties. + + PSObject + + PSObject + + + + + + Plan + + A hash table which represents resource plan properties. + + Hashtable + + Hashtable + + + + + + Tag + + A hash table which represents resource tags. + + Hashtable[] + + Hashtable[] + + + + + + UsePatchSemantics + + When set indicates if an HTTP PATCH should be used to update the object instead of PUT. + + SwitchParameter + + SwitchParameter + + + + + + OutputObjectFormat + + The output format of the resource properties. + + Nullable`1[ResourceObjectFormat] + + Nullable`1[ResourceObjectFormat] + + + + + + ResourceId + + The fully qualified resource Id, including the subscription. e.g. /subscriptions/{subscriptionId}/providers/Microsoft.Sql/servers/myServer/databases/myDatabase + + String + + String + + + + + + ODataQuery + + An OData style filter which will be appended to the request in addition to any other filters. + + String + + String + + + + + + Force + + Do not ask for confirmation. + + SwitchParameter + + SwitchParameter + + + + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + String + + + + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + ResourceName + + The resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + String + + + + + + ResourceType + + The resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + String + + + + + + ParentResource + + The parent resource type. e.g. Servers/myServer. + + String + + String + + + + + + ExtensionResourceName + + The extension resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + String + + + + + + ExtensionResourceType + + The extension resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + String + + + + + + SubscriptionId + + The subscription to use. + + Nullable`1[Guid] + + Nullable`1[Guid] + + + + + + ResourceGroupName + + The resource group name. + + String + + String + + + + + + TenantLevel + + Indicates that this is a tenant level operation. + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- SetAzureResource1 -------------------------- + + PS C:\> + + + $r = Get-AzureResource -ResourceType microsoft.web/sites -ResourceGroupName myResourceGroup -ResourceName mySite -OutputObjectFormat New + $r.Properties.Enabled = "False" + $r | Set-AzureResource -Force -OutputObjectFormat New + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 3188440e940e8c247837095eaf13dc4133352a33 Mon Sep 17 00:00:00 2001 From: vivsriaus Date: Wed, 27 May 2015 14:32:35 -0700 Subject: [PATCH 2/3] Add help for set-azureresourcelock --- ...mands.ResourceManager.Cmdlets.dll-Help.xml | 857 +++++++++++++++++- 1 file changed, 856 insertions(+), 1 deletion(-) diff --git a/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml b/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml index 021f38e0932d..3c48e8c6c2e2 100644 --- a/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml +++ b/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml @@ -1909,7 +1909,7 @@ PS C:\> - Get-AzureResourceLock -LockName test + Get-AzureResourceLock -LockName test -ResourceName myResource -ResourceType microsoft.web/sites -ResourceGroupName myResourceGroup Gets the resource lock "test" @@ -5868,4 +5868,859 @@ + + + + Set-AzureResourceLock + + Updates an existing resource lock. + + + + + Set + AzureResourceLock + + + + Updates an existing resource lock. + + + + Set-AzureResourceLock + + LockLevel + + The level of the lock. + + LockLevel + + + LockNotes + + The notes of the lock. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + LockName + + The name of the lock. + + String + + + ResourceName + + The resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + + ResourceType + + The resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + Set-AzureResourceLock + + LockLevel + + The level of the lock. + + LockLevel + + + LockNotes + + The notes of the lock. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + LockName + + The name of the lock. + + String + + + Scope + + The scope. e.g. to specify a database '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaserName}', to specify a resoruce group: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + + String + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + Set-AzureResourceLock + + LockLevel + + The level of the lock. + + LockLevel + + + LockNotes + + The notes of the lock. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + LockName + + The name of the lock. + + String + + + ResourceName + + The resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + + ResourceType + + The resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + + SubscriptionId + + The subscription to use. + + Nullable`1[Guid] + + + ResourceGroupName + + The resource group name. + + String + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + Set-AzureResourceLock + + LockLevel + + The level of the lock. + + LockLevel + + + LockNotes + + The notes of the lock. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + LockName + + The name of the lock. + + String + + + ResourceName + + The resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + + ResourceType + + The resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + + TenantLevel + + Indicates that this is a tenant level operation. + + SwitchParameter + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + Set-AzureResourceLock + + LockLevel + + The level of the lock. + + LockLevel + + + LockNotes + + The notes of the lock. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + LockName + + The name of the lock. + + String + + + SubscriptionId + + The subscription to use. + + Nullable`1[Guid] + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + Set-AzureResourceLock + + LockLevel + + The level of the lock. + + LockLevel + + + LockNotes + + The notes of the lock. + + String + + + Force + + Do not ask for confirmation. + + SwitchParameter + + + LockName + + The name of the lock. + + String + + + SubscriptionId + + The subscription to use. + + Nullable`1[Guid] + + + ResourceGroupName + + The resource group name. + + String + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + LockLevel + + The level of the lock. + + LockLevel + + LockLevel + + + + + + LockNotes + + The notes of the lock. + + String + + String + + + + + + Force + + Do not ask for confirmation. + + SwitchParameter + + SwitchParameter + + + + + + LockName + + The name of the lock. + + String + + String + + + + + + ResourceName + + The resource name. e.g. to specify a database MyServer/MyDatabase. + + String + + String + + + + + + ResourceType + + The resource type. e.g. Microsoft.Sql/Servers/Databases. + + String + + String + + + + + + ApiVersion + + When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available. + + String + + String + + + + + + Pre + + When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use. + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + Scope + + The scope. e.g. to specify a database '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaserName}', to specify a resoruce group: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + + String + + String + + + + + + SubscriptionId + + The subscription to use. + + Nullable`1[Guid] + + Nullable`1[Guid] + + + + + + ResourceGroupName + + The resource group name. + + String + + String + + + + + + TenantLevel + + Indicates that this is a tenant level operation. + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- SetResourceLock1 -------------------------- + + PS C:\> + + Set-AzureResourceLock -LockName test -ResourceName myResource -ResourceType microsoft.web/sites -ResourceGroupName myResourceGroup -LockLevel CanNotDelete -LockNotes "Updated note" + + Updates + + + + + + + + + + + + + + + + \ No newline at end of file From 5abb5adbe5c3d51f20d8d2da2dd83b751e8e00c4 Mon Sep 17 00:00:00 2001 From: vivsriaus Date: Wed, 27 May 2015 14:35:54 -0700 Subject: [PATCH 3/3] Fix message --- ...icrosoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml b/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml index 3c48e8c6c2e2..1c72966f882f 100644 --- a/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml +++ b/src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml @@ -6706,7 +6706,7 @@ Set-AzureResourceLock -LockName test -ResourceName myResource -ResourceType microsoft.web/sites -ResourceGroupName myResourceGroup -LockLevel CanNotDelete -LockNotes "Updated note" - Updates + Updates existing resource lock