eng/templates/README.md
dotnet new install `Path to SDK repo`\eng\templates\Azure.ResourceManager.Template
dotnet new azuremgmt --help
Following parameter is available
| Parameter | Required | Description |
|---|---|---|
| -p, --provider | Yes | The Azure provider name. For example, Microsoft.Network or Microsoft.Compute. Note this parameter is also used for diagnostic attribute in AssemblyInfo.cs. The second part of the provider name Compute is also used in src\autorest.md to point to REST Api spec specifications\Compute\resource-manager\readme.md. If they mismatch, manual adjustment is needed in autorest.md. |
| -t, --tagVersion | No | Specifies the package tag in the README.MD. If empty, CodeGen will rely on the default tag in the README.MD is used. If default tag isn't present, CodeGen may fail. |
| -in, --includeCI | No | Specifies whether ci.mgmt.yml will be created in the parent folder. Token replacements have been performed on ci.mgmt.yml based on current project name. Note, for now, you still need to change sdk/template/ to sdk/RP and serviceDirectory: to RP folder name. This issue would be fixed in the future. |
Azure.ResourceManager.Rp under corresponding service folder that is under network\Azure.ResourceManager.NetworkAzure.ResourceManager.Rp folderResourceProviderName ORResourceProviderName --tagVersion Optional tag in README.MD ORResourceProviderName --includeCI trueNote: The last step updates the ci paths in Azure.ResourceManager ci.mgmt.yml file so that it will run anytime this new package changes Note: Please use proper casing for the directory name as well as resource provider name.
Azure.ResourceManager.Rp,Microsoft.ComputeorMicrosoft.KeyVault. The resource provider name withoutMicrosoft.will be used in autorest.md file pointing to thehttps://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/<resource name>/resource-manager/readme.md
tsp-location.yaml to ensure the REST Api path is validdotnet build to ensure empty project builds successfully.dotnet build /t:GenerateCode to generate C# code and ensure no fatal errors.dotnet build to ensure now generated project builds successfully.