Skip to content

Commit f364927

Browse files
authored
Merge pull request #6156 from bganapa/stack-migration
Azurestack admin module 1.2.12 migration guide
2 parents ec157f0 + ad41b8e commit f364927

File tree

157 files changed

+4286
-4174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+4286
-4174
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Table of Contents
2+
1. [Summary](#summary)
3+
2. [Breaking changes in subscriptions module](#Breaking-changes-in-subscriptions-module)
4+
3. [Breaking changes in storage admin module](#Breaking-changes-in-storage-admin-module)
5+
6+
## Summary
7+
The module version 1.3.0 of AzureStack brings in many breaking changes. Most of these breaking changes were noted with warnings in the previous releases. Please note that there are no changes in the AzureRM version of the module specific to Azure Stack.
8+
9+
AzureRm.AzureStackAdmin module is replaced with Azs.Subscriptions.Admin and Azs.Subscriptions module
10+
AzureRm.AzureStackStorage module is replaced with Azs.Storage.Admin module
11+
12+
## Breaking changes in subscriptions module
13+
14+
**Prefix Changes**<br>
15+
The prefix *AzureRM* has been deprecated. We have been printing warning that the prefix *AzureRm* will be replaced with *Azs*. We replaced the AzureRm prefix with Azs in the last release with alias support. Now prefix *AzureRm* has been deprecated.The following are the changes.
16+
- *-AzureRmOffer is replaced with *-AzsOffer
17+
- *-AzureRmManagedOffer is replaced with *-AzsManagedOffer
18+
- *-AzureRmPlan is replaced with *-AzsPlan
19+
- *-AzureRmMangedSubscription is replaced with *-AzsUserSubscription
20+
- *-AzureRMTenantSubscription is replaced with *-AzsSubscription
21+
- *-AzureRmManagedLocation is replaced with *-AzsLocation
22+
23+
**Deprecated Cmdlets**
24+
25+
- ```Get-AzureStackToken``` is deprecated. If there is a need to get token, please use the Microsoft.IdentityModel.Clients.ActiveDirectory.dll directly.
26+
27+
- The cmdlets ```*-AzsReourceProviderManifest``` and ```*-AzsUsageConnection``` are deprecated
28+
For any of these usages, template based resource creation is preferred.  For deletion of these resources, deleting the whole resource group is preferred. If needed, you can also use generic cmdlet *-AzureRmResource
29+
30+
**Parameter Changes**<br>
31+
The previous release was printing warnings about the deprecation of the following parameter aliases and they are deprecated now.
32+
- Parameter alias ```PlanName``` has been deprecated in favor of ```Name``` in Plan cmdlets
33+
- Parameter alias ```OfferName``` has been deprecated in favor of ```Name``` in Offer cmdlets
34+
- Parameter alias ```ResourceGroup``` has been deprecated in favor of ```ResourceGroupName``` in all the cmdlets
35+
- Parameter ```Managed``` in Get-AzsPlan has been deprecated. It was not used before
36+
- Parameter ```Managed``` in Get-AzsOffer has been deprecated. Please use Get-AzsManagedOffer instead
37+
38+
**Flattening of Properties** <br>
39+
Properties field of the objects Plan, Offer, Subscription have been removed and the child properties are moved to the top level. If you are having any references to the Properties, this breaking change could be fixed by removing the intermediate Properties reference
40+
41+
**Force Parameter** <br>
42+
43+
Remove-* cmdlets will ask for confirmation before doing the remove action. Please use -Force to avoid the confirmation. The following are the affected cmldets
44+
- Remove-AzsOffer
45+
- Remove-AzsPlan
46+
- Remove-AzsUserSubscription
47+
- Remove-AzsSubscription
48+
49+
<br>
50+
51+
## Breaking Changes in Storage Admin Module
52+
53+
**Globally Removed Parameters**<br>
54+
The parameters ```SkipCertificateValidation``` and ```DefaultProfile``` have been removed from all cmdlets.
55+
56+
The parameters ```TimeGrain```, ```StartTimeInUtc```, ```EndTimInUtc```, ```MetricNames```, ```DetailedOutput```  have been removed for Get-Azs*Metric Cmdlets, please replace with Where-Object and Select-Object.
57+
58+
The pareamters ```MetricNames```, ```DetailedOutput```  have been removed for Get-Azs*MetricDefinition Cmdlets, please replace with Where-Object and Select-Object
59+
60+
**New Parameters**
61+
- The parameter ```ResourceGroupName``` is now an optional for all cmdlets.
62+
- The parameter ```FarmName``` will be required for all Cmdlets that reference nested resources under a farm.  You can get the value using the following
63+
64+
```powershell
65+
        (Get-AzsStorageFarm -ResourceGroupName $rgn).Name
66+
```
67+
Affected cmdlets
68+
- Get-AzsBlobService
69+
- Get-AzsBlobServiceMetric
70+
- Get-AzsBlobServiceMetricDefinition
71+
- Get-AzsStorageFarmMetric
72+
- Get-AzsStorageFarmMetricDefinition
73+
- Get-AzsStorageShare
74+
- Get-AzsStorageShareMetric
75+
- Get-AzsStorageShareMetricDefinition
76+
- Get-AzsTableService
77+
- Get-AzsTableServiceMetric
78+
- Get-AzsTableServiceMetricDefinition
79+
- Start-AzsReclaimStorageCapacity
80+
81+
```ResourceId``` parameter can be used for cmdlets that require ```Name``` . The ReourceId is same as the Id of the resource object that is returned from the Get-* cmdlets. The parameter also has an alias ```Id```.
82+
83+
Affected cmdlets<br>
84+
- Get-AzsStorageQuota
85+
- Get-AzsStorageShare
86+
- Remove-AzsStorageQuota
87+
- Set-AzsStorageQuota
88+
- Stop-AzsContainerMigration
89+
- Restore-AzsStorageAccount 
90+
91+
92+
**Get-AzsStorageAccount**<br>
93+
94+
The parameters ```TenantSubscriptionId```, ```PartialAccountName```, ```StorageAccountStatus``` and ```Detail``` has been removed.  A new parameter called ```Summary``` has been added.
95+
96+
**Get-AzsStorageAcquisition**<br>
97+
The parameters ```TenantSubscriptionId```, ```AccountName```, ```Container```, and ```Detail``` has been removed.  A new parameter called ```Filter``` has been added, this is an ODATA filter.
98+
99+
**Get-AzsStorageContainer**<br>
100+
The parameter ```Intent``` has been removed and Count has been renamed to MaxCount.
101+
102+
**Get-AzsStorageShare**<br>
103+
The parameter ```SourceShareName``` has been replaced with ```FarmName```. The parameter ```Intent``` has been removed.
104+
105+
**Start-AzsStorageContainerMigration**<br>
106+
The parameter ```ContainerToMigrate``` is renamed to ```ContainerName```.  The parameters ```StorageAccountName```, ```ShareName``` and ```FarmName``` have been added.
107+
108+
**Stop-AzsStorageContainerMigration**<br>
109+
This cmdlet has been renamed to ```Stop-AzsContainerMigration```
110+
111+
**Undo-AzsDeletedStorageAccount**<br>
112+
This cmdlet has been renamed to Restore-AzsStorageAccount. The parameters ```NewAccountName```, ```ResourceAdminApiVersion```, ```StorageAccountApiVersion``` have been deprecated.

src/StackAdmin/Azs.AzureBridge.Admin/Help/Azs.AzureBridge.Admin.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
Module Name: Azs.AzureBridge.Admin
2+
Module Name: Azs.Azurebridge.Admin
33
Module Guid: 82d2260a-95ae-44bb-af8b-afd67d38f6db
44
Download Help Link: {{Please enter FwLink manually}}
55
Help Version: {{Please enter version of help manually (X.X.X.X) format}}
66
Locale: en-US
77
---
88

9-
# Azs.AzureBridge.Admin Module
9+
# Azs.Azurebridge.Admin Module
1010
## Description
11-
{{Manually Enter Description Here}}
11+
Preview release of the AzureStack AzureBridge administrator module which allows you to manage your AzureStack marketplace items.
1212

13-
## Azs.AzureBridge.Admin Cmdlets
13+
## Azs.Azurebridge.Admin Cmdlets
1414
### [Get-AzsAzureBridgeActivation](Get-AzsAzureBridgeActivation.md)
1515
Returns the Azure Bridge Activation.
1616

src/StackAdmin/Azs.AzureBridge.Admin/Help/Get-AzsAzureBridgeActivation.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: Azs.Azurebridge.Admin-help.xml
3-
Module Name: Azs.AzureBridge.Admin
4-
online version:
3+
Module Name: Azs.Azurebridge.Admin
4+
online version:
55
schema: 2.0.0
66
---
77

@@ -32,14 +32,14 @@ Once Azure Stack has been registered, the activation object contains information
3232

3333
## EXAMPLES
3434

35-
### -------------------------- EXAMPLE 1 --------------------------
35+
### EXAMPLE 1
3636
```
3737
Get-AzsAzureBridgeActivation -ResourceGroupName 'activationRG'
3838
```
3939

4040
Get a list of Azure Bridge Activations under the resource group "activationRG"
4141

42-
### -------------------------- EXAMPLE 2 --------------------------
42+
### EXAMPLE 2
4343
```
4444
Get-AzsAzureBridgeActivation -Name 'myActivation' -ResourceGroupName 'activationRG'
4545
```
@@ -54,7 +54,7 @@ Name of the activation.
5454
```yaml
5555
Type: String
5656
Parameter Sets: Get
57-
Aliases:
57+
Aliases:
5858

5959
Required: True
6060
Position: Named
@@ -69,7 +69,7 @@ The Resource Group used during the registration of Azure Stack; you can also vie
6969
```yaml
7070
Type: String
7171
Parameter Sets: List, Get
72-
Aliases:
72+
Aliases:
7373

7474
Required: True
7575
Position: Named
@@ -99,7 +99,7 @@ Skip the first N items as specified by the parameter value.
9999
```yaml
100100
Type: Int32
101101
Parameter Sets: List
102-
Aliases:
102+
Aliases:
103103

104104
Required: False
105105
Position: Named
@@ -115,7 +115,7 @@ Applies after the -Skip parameter.
115115
```yaml
116116
Type: Int32
117117
Parameter Sets: List
118-
Aliases:
118+
Aliases:
119119

120120
Required: False
121121
Position: Named
@@ -136,4 +136,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
136136
## NOTES
137137
138138
## RELATED LINKS
139-

src/StackAdmin/Azs.AzureBridge.Admin/Help/Get-AzsAzureBridgeDownloadedProduct.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: Azs.Azurebridge.Admin-help.xml
3-
Module Name: Azs.AzureBridge.Admin
4-
online version:
3+
Module Name: Azs.Azurebridge.Admin
4+
online version:
55
schema: 2.0.0
66
---
77

@@ -34,14 +34,14 @@ Returns a list of products downloaded from Azure MarketPlace.
3434

3535
## EXAMPLES
3636

37-
### -------------------------- EXAMPLE 1 --------------------------
37+
### EXAMPLE 1
3838
```
3939
Get-AzsAzureBridgeDownloadedProduct -ActivationName 'myActivation' -ResourceGroupName 'activationRG'
4040
```
4141

4242
Get a list of Azure Bridge Downloaded products
4343

44-
### -------------------------- EXAMPLE 2 --------------------------
44+
### EXAMPLE 2
4545
```
4646
Get-AzsAzureBridgeDownloadedProduct -Name 'microsoft.docker-arm.1.1.0' -ActivationName 'myActivation' -ResourceGroupName 'activationRG'
4747
```
@@ -50,13 +50,13 @@ Get an Azure Bridge Downloaded Product by Name
5050

5151
## PARAMETERS
5252

53-
### -ActivationName
54-
Name of the activation.
53+
### -Name
54+
Name of the product.
5555

5656
```yaml
5757
Type: String
58-
Parameter Sets: List, Get
59-
Aliases:
58+
Parameter Sets: Get
59+
Aliases:
6060

6161
Required: True
6262
Position: Named
@@ -65,13 +65,13 @@ Accept pipeline input: False
6565
Accept wildcard characters: False
6666
```
6767
68-
### -Name
69-
Name of the product.
68+
### -ActivationName
69+
Name of the activation.
7070
7171
```yaml
7272
Type: String
73-
Parameter Sets: Get
74-
Aliases:
73+
Parameter Sets: List, Get
74+
Aliases:
7575

7676
Required: True
7777
Position: Named
@@ -86,7 +86,7 @@ The resource group the resource is located under.
8686
```yaml
8787
Type: String
8888
Parameter Sets: List, Get
89-
Aliases:
89+
Aliases:
9090

9191
Required: True
9292
Position: Named
@@ -116,7 +116,7 @@ Skip the first N items as specified by the parameter value.
116116
```yaml
117117
Type: Int32
118118
Parameter Sets: List
119-
Aliases:
119+
Aliases:
120120

121121
Required: False
122122
Position: Named
@@ -132,7 +132,7 @@ Applies after the -Skip parameter.
132132
```yaml
133133
Type: Int32
134134
Parameter Sets: List
135-
Aliases:
135+
Aliases:
136136

137137
Required: False
138138
Position: Named
@@ -153,4 +153,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
153153
## NOTES
154154
155155
## RELATED LINKS
156-

src/StackAdmin/Azs.AzureBridge.Admin/Help/Get-AzsAzureBridgeProduct.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: Azs.Azurebridge.Admin-help.xml
3-
Module Name: Azs.AzureBridge.Admin
4-
online version:
3+
Module Name: Azs.Azurebridge.Admin
4+
online version:
55
schema: 2.0.0
66
---
77

@@ -34,14 +34,14 @@ Returns a list of products available for download from Azure Marketplace.
3434

3535
## EXAMPLES
3636

37-
### -------------------------- EXAMPLE 1 --------------------------
37+
### EXAMPLE 1
3838
```
3939
Get-AzsAzureBridgeProduct -ActivationName 'myActivation' -ResourceGroupName 'activationRG'
4040
```
4141

4242
Get a list of Products available for download from Azure Marketplace.
4343

44-
### -------------------------- EXAMPLE 2 --------------------------
44+
### EXAMPLE 2
4545
```
4646
Get-AzsAzureBridgeProduct -ActivationName 'myActivation' -ResourceGroupName 'activationRG' -Name 'microsoft.docker-arm.1.1.0'
4747
```
@@ -50,13 +50,13 @@ Get a product info available for download from Azure Marketplace by Name.
5050

5151
## PARAMETERS
5252

53-
### -ActivationName
54-
Name of the activation.
53+
### -Name
54+
Name of the product.
5555

5656
```yaml
5757
Type: String
58-
Parameter Sets: List, Get
59-
Aliases:
58+
Parameter Sets: Get
59+
Aliases:
6060

6161
Required: True
6262
Position: Named
@@ -65,13 +65,13 @@ Accept pipeline input: False
6565
Accept wildcard characters: False
6666
```
6767
68-
### -Name
69-
Name of the product.
68+
### -ActivationName
69+
Name of the activation.
7070
7171
```yaml
7272
Type: String
73-
Parameter Sets: Get
74-
Aliases:
73+
Parameter Sets: List, Get
74+
Aliases:
7575

7676
Required: True
7777
Position: Named
@@ -86,7 +86,7 @@ The resource group the resource is located under.
8686
```yaml
8787
Type: String
8888
Parameter Sets: List, Get
89-
Aliases:
89+
Aliases:
9090

9191
Required: True
9292
Position: Named
@@ -116,7 +116,7 @@ Skip the first N items as specified by the parameter value.
116116
```yaml
117117
Type: Int32
118118
Parameter Sets: List
119-
Aliases:
119+
Aliases:
120120

121121
Required: False
122122
Position: Named
@@ -132,7 +132,7 @@ Applies after the -Skip parameter.
132132
```yaml
133133
Type: Int32
134134
Parameter Sets: List
135-
Aliases:
135+
Aliases:
136136

137137
Required: False
138138
Position: Named
@@ -153,4 +153,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
153153
## NOTES
154154
155155
## RELATED LINKS
156-

0 commit comments

Comments
 (0)