Skip to content

Improve 'migration' articles #1070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 23, 2019
Merged

Improve 'migration' articles #1070

merged 9 commits into from
May 23, 2019

Conversation

sptramer
Copy link
Contributor

No description provided.

@sptramer sptramer changed the title - Change the ToC to surface migration articles - Copyedit 'breaking changes' list - Edit existing 'migration' article to improve language and deep links to breaking changes - Better referencing of migration articles in the 'new module' article Improve 'migration' articles May 17, 2019
@sptramer sptramer requested review from sdwheeler, dcaro and sphibbs May 17, 2019 00:17
@sptramer
Copy link
Contributor Author

@dcaro @sdwheeler @sphibbs Requesting review since this is a fairly serious set of changes I want a set of second eyes on to ensure that it's correct and properly deep-links users through the migration process. All feedback is welcome.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit 764a5d1:

🕙 Full build: the average full build time is 33 min(s) 30 sec(s), this is based on the last 90 build(s) for this repository.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit 764a5d1:

✅ Validation status: passed

File Status Preview URL Details
docs-conceptual/azps-2.0.0/migrate-az-1.0.0.md 💡Suggestion View (azps-2.0.0) Details
docs-conceptual/azps-2.0.0/migrate-from-azurerm-to-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/new-azureps-module-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/toc.yml ✅Succeeded View (azps-2.0.0)

docs-conceptual/azps-2.0.0/migrate-az-1.0.0.md

  • Line 28: [Suggestion] Illegal link: `<a href="#temporary-default-device-code-login-instead-of-web-browser-prompt">Default device code login instead of web browser prompt</a>` -- missing bookmark. The file docs-conceptual/azps-2.0.0/migrate-az-1.0.0.md doesn't contain a bookmark named temporary-default-device-code-login-instead-of-web-browser-prompt.

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit 425879e:

🕙 Full build: the average full build time is 33 min(s) 26 sec(s), this is based on the last 91 build(s) for this repository.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit 425879e:

✅ Validation status: passed

File Status Preview URL Details
docs-conceptual/azps-2.0.0/migrate-az-1.0.0.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/migrate-from-azurerm-to-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/new-azureps-module-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/toc.yml ✅Succeeded View (azps-2.0.0)

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit 5adc751:

🕙 Full build: the average full build time is 33 min(s) 23 sec(s), this is based on the last 92 build(s) for this repository.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit 5adc751:

✅ Validation status: passed

File Status Preview URL Details
docs-conceptual/azps-2.0.0/migrate-az-1.0.0.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/migrate-from-azurerm-to-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/new-azureps-module-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/toc.yml ✅Succeeded View (azps-2.0.0)

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


This document describes the changes between the 6.x versions of AzureRM and Az version 1.0.0.
For general advice on getting started with a migration from AzureRM to Az, see [Start migration from
AzureRM to Az](migrate-from-azurerm-to-az.md).

## Table of Contents
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style-wise, we do not do TOCs within documents. All H2 headers are automatically added to the right-hand Nav pane.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally I would agree, but the RHS gutter isn't appropriate for an article like this, which needs many easily navigable subheadings with long titles. I think release notes are a special case that aren't handled particularly well by the azure-docs infrastructure and guidelines.

#### Migrating #Requires Statements
Scripts that use #Requires to declare a dependency on AzureRM modules should be updated to use the new module names
```powershell
The changes in module names mean that any script that uses ```#Requires``` or ```Import-Module``` to load specific modules will need to be changed to use the new module instead. For modules where the cmdlet suffix has not changed,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline code fencing should use a single backtick. For example:

`#Requires` or `Import-Module`

The changes in module names mean that any script that uses ```#Requires``` or ```Import-Module``` to load specific modules will need to be changed to use the new module instead.
The module names have changed from `AzureRM.*` to `Az.*`, except for the following modules:

| AzureRM module | Az module | Cmdlet suffix changed? |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me what a "suffix" is in this context. Do you mean the cmdlet Noun? Suffix is not a term that has been used in PowerShell. So this should be changed or defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was meant to represent things like where the module name was part of a cmdlet name, and whether or not that changed along with the module name (most cmdlets didn't) but you're right that it's too confusing. Removing.


```powershell
```azurepowershell-interactive
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an executable statement. It is a member of a hash table in the manifest file. So the code fence type should not be interactive. It should be "powershell".


```powershell
```azurepowershell-interactive
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an executable statement. It is a member of a hash table in the manifest file. So the code fence type should not be interactive. It should be "powershell".


### Windows PowerShell 5.1 and .NET 4.7.2
- Using Az with Windows PowerShell 5.1 requires the installation of .NET 4.7.2. However, using Az with PowerShell Core does not require .NET 4.7.2.

Using Az with Windows PowerShell 5.1 requires the installation of .NET 4.7.2. However, using Az with PowerShell Core does not require .NET 4.7.2.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

".NET Framework 4.7.2" not ".NET 4.7.2"


### Default Device Code login instead of Web Browser prompt
- Due to changes in the authentication flow for .NET Standard, we are using device login as the default login flow during interactive login. Web browser based login will be re-introduced for Windows PowerShell 5.1 as the default in the 1/15/2019 release. At that time, users will be able to choose device login using a Switch parameter.
Due to changes in the authentication flow for .NET Standard, we are temporarily removing user login via PSCredential. This capability will be re-introduced in the 1/15/2019 release for Windows PowerShell 5.1. This is discussed in detail in [this GitHub issue.](https://github.com/Azure/azure-powershell/issues/7430)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are past this date. Is this still a problem? I am not aware of 1/15/2019 release of PowerShell 5.1. Or do you mean the release of Az PowerShell and not Windows PowerShell 5.1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcaro I was wondering this myself. The github issues are a labrynth here, I clicked through something like 4 layers of them and still didn't find out whether or not this has been fixed.


### Default device code login instead of web browser prompt

Due to changes in the authentication flow for .NET Standard, we are using device login as the default login flow during interactive login. Web browser based login will be re-introduced for Windows PowerShell 5.1 as the default in the 1/15/2019 release. At that time, users will be able to choose device login using a Switch parameter.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1/15/2019 release of what? Not clear here. And is this still relevant since we are past that date.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcaro See above

- New-AzureRmApiManagementHostnameConfiguration
- Set-AzureRmApiManagementHostnames
- Update-AzureRmApiManagementDeployment
- Import-AzureRmApiManagementHostnameCertificate
- Use **Set-AzApiManagement** cmdlet to set these properites instead
- Following properties were removed
- Removed the following properties:
- Removed property `PortalHostnameConfiguration`, `ProxyHostnameConfiguration`, `ManagementHostnameConfiguration` and `ScmHostnameConfiguration` of type `PsApiManagementHostnameConfiguration` from `PsApiManagementContext`. Instead use `PortalCustomHostnameConfiguration`, `ProxyCustomHostnameConfiguration`, `ManagementCustomHostnameConfiguration` and `ScmCustomHostnameConfiguration` of type `PsApiManagementCustomHostNameConfiguration`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The style guide we have for PowerShell says that properties, class names, type names, and cmdlet parameters should be in bold and cmdlet names should be in backticks (code fences).

See https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/contributing/3-STYLE-GUIDE.md#formatting-syntax-elements

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've taken a general task to fix the AzPS docs to conform to this style guide and will update the entire docset at one time. I'm assuming that the reference already follows these guidelines?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the whole contributor guide in that folder. There are many aspects for how we format the PowerShell docs. Let me know if you have any questions. It is a living document. We add or change things as necessary. But this has help drive consistency in my docset.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit cb1bc55:

🕙 Full build: the average full build time is 33 min(s) 21 sec(s), this is based on the last 93 build(s) for this repository.

@ghost
Copy link

ghost commented May 17, 2019

Docs Build status updates of commit cb1bc55:

✅ Validation status: passed

File Status Preview URL Details
docs-conceptual/azps-2.0.0/migrate-az-1.0.0.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/migrate-from-azurerm-to-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/new-azureps-module-az.md ✅Succeeded View (azps-2.0.0)
docs-conceptual/azps-2.0.0/toc.yml ✅Succeeded View (azps-2.0.0)

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Stephen Tramer added 6 commits May 22, 2019 11:17
- Copyedit 'breaking changes' list
- Edit existing 'migration' article to improve language and deep links
to breaking changes
- Better referencing of migration articles in the 'new module' article
@ghost
Copy link

ghost commented May 22, 2019

Docs Build status updates of commit 2bf52f8:

🕙 Full build: the average full build time is 32 min(s) 46 sec(s), this is based on the last 99 build(s) for this repository.

@ghost
Copy link

ghost commented May 22, 2019

Docs Build status updates of commit 2bf52f8:

✅ Validation status: passed

File Status Preview URL Details
docs-conceptual/azps-1.8.0/toc.yml ✅Succeeded
docs-conceptual/azps-2.1.0/migrate-az-1.0.0.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/migrate-from-azurerm-to-az.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/new-azureps-module-az.md ✅Succeeded View (azps-2.1.0)

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@ghost
Copy link

ghost commented May 23, 2019

Docs Build status updates of commit 52739f9:

🕙 Full build: the average full build time is 32 min(s) 46 sec(s), this is based on the last 100 build(s) for this repository.

@ghost
Copy link

ghost commented May 23, 2019

Docs Build status updates of commit 52739f9:

✅ Validation status: passed

File Status Preview URL Details
docs-conceptual/azps-1.8.0/toc.yml ✅Succeeded
docs-conceptual/azps-2.1.0/migrate-az-1.0.0.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/migrate-from-azurerm-to-az.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/new-azureps-module-az.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/toc.yml ✅Succeeded View (azps-2.1.0)

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@ghost
Copy link

ghost commented May 23, 2019

Docs Build status updates of commit 893703e:

🕙 Full build: the average full build time is 32 min(s) 38 sec(s), this is based on the last 103 build(s) for this repository.

@ghost
Copy link

ghost commented May 23, 2019

Docs Build status updates of commit 893703e:

✅ Validation status: passed

File Status Preview URL Details
docs-conceptual/azps-1.8.0/toc.yml ✅Succeeded View (azps-1.8.0)
docs-conceptual/azps-2.1.0/migrate-az-1.0.0.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/migrate-from-azurerm-to-az.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/new-azureps-module-az.md ✅Succeeded View (azps-2.1.0)
docs-conceptual/azps-2.1.0/toc.yml ✅Succeeded View (azps-2.1.0)

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@sptramer sptramer merged commit 3e14223 into MicrosoftDocs:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants