Created
December 9, 2019 15:06
-
-
Save Lutando/12e10c3be05ea91a1313e9f64c8e9341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# we make a new schema | |
$newApiManagementSchemaParams = @{ | |
Context = $ApiManagementContext | |
ApiId = $newApiRevision.ApiId | |
SchemaDocumentContentType = "application/json" | |
SchemaDocumentFilePath = $apiSpecificationPath | |
} | |
New-AzApiManagementApiSchema @newApiManagementSchemaParams | |
# now lets create an api release for this revision | |
# without releasing the revision, no external | |
# consumer will be able to see the set revision | |
$newApiManagementApiReleaseParams = @{ | |
Context = $apiManagementContext | |
ApiId = $apiSpecification.ApiId | |
ApiRevision = $newApiRevision.ApiRevision | |
} | |
New-AzApiManagementApiRelease @newApiManagementApiReleaseParams |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment