Changing Azure Service Fabric API version for ARM template deployment

Published Jan 07 2021 11:56 PM 1,260 Views
Microsoft

Creating a new cluster with latest API version : 

 

If you create a service fabric cluster currently it takes the API version as 2018-02-01 as of today. 

while deploying the ARM template you can change it to latest version available prior to deploying via Azure portal or Visual Studio or Azure Dev ops. 

 

You can find the latest version at : Microsoft.ServiceFabric/clusters - ARM template reference | Microsoft Docs

 

OLD : 

image1.PNG

 

 

NEW : 

image2.PNG

 

Update an existing cluster with latest API version : 

If you have the previous template available you can redeploy only the Service Fabric resource with required API version or get template from the deployment section of your resource group otherwise simply you can pull the latest template with https://resources.azure.com 

 

Navigate to your subscription by expanding subscriptions -> <Your Subscription> -> resourceGroups -> <Your Resource Group> -> providers -> Microsoft.ServiceFabric -> clusters -> <Your Cluster Name>

 

Copy the template  

image3.png

 

Create a new custom deployment template and deploy via Azure portal or powershell/ VS with making the changes for the API version.

Important note for the template copied via Azure Resource Explorer make sure your remove the etag and cross verify your existing Fabric setting applied or update any setting want to apply which requires latest API version and not able to perform via Azure Resource Explorer. 

 

image4.png

 

image5.png

 

Then you can deploy the changes. 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2042694%22%20slang%3D%22en-US%22%3EChanging%20Azure%20Service%20Fabric%20API%20version%20for%20ARM%20template%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2042694%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3ECreating%20a%20new%20cluster%20with%20latest%20API%20version%20%3A%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20create%20a%20service%20fabric%20cluster%20currently%20it%20takes%20the%20API%20version%20as%202018-02-01%20as%20of%20today.%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhile%20deploying%20the%20ARM%20template%20you%20can%20change%20it%20to%20latest%20version%20available%20prior%20to%20deploying%20via%20Azure%20portal%20or%20Visual%20Studio%20or%20Azure%20Dev%20ops.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20the%20latest%20version%20at%20%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Ftemplates%2Fmicrosoft.servicefabric%2Fclusters%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft.ServiceFabric%2Fclusters%20-%20ARM%20template%20reference%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOLD%20%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22image1.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244848i48D90B5A47443EC1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image1.PNG%22%20alt%3D%22image1.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENEW%20%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22image2.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244850i00A18B20B327AE9A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image2.PNG%22%20alt%3D%22image2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EUpdate%20an%20existing%20cluster%20with%20latest%20API%20version%20%3A%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20the%20previous%20template%20available%20you%20can%20redeploy%20only%20the%20Service%20Fabric%20resource%20with%20required%20API%20version%20or%20get%20template%20from%20the%20deployment%20section%20of%20your%20resource%20group%20otherwise%20simply%20you%20can%20pull%20the%20latest%20template%20with%20%3CA%20href%3D%22https%3A%2F%2Fresources.azure.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fresources.azure.com%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENavigate%20to%20your%20subscription%20by%20expanding%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Esubscriptions%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CYOUR%20subscription%3D%22%22%3E%3C%2FYOUR%3E%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EresourceGroups%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CYOUR%20resource%3D%22%22%20group%3D%22%22%3E%3C%2FYOUR%3E%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eproviders%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMicrosoft.ServiceFabric%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eclusters%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CYOUR%20cluster%3D%22%22%20name%3D%22%22%3E%3C%2FYOUR%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECopy%20the%20template%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22image3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244853i42A7D86AE205C29F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image3.png%22%20alt%3D%22image3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECreate%20a%20new%20custom%20deployment%20template%20and%20deploy%20via%20Azure%20portal%20or%20powershell%2F%20VS%20with%20making%20the%20changes%20for%20the%20API%20version.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EImportant%20note%3C%2FSTRONG%3E%20for%20the%20template%20copied%20via%20Azure%20Resource%20Explorer%20make%20sure%20your%20remove%20the%20etag%20and%20cross%20verify%20your%20existing%20Fabric%20setting%20applied%20or%3CU%3E%3CEM%3E%20update%20any%20setting%20want%20to%20apply%20which%20requires%20latest%20API%20version%20and%20not%20able%20to%20perform%20via%20Azure%20Resource%20Explorer.%26nbsp%3B%3C%2FEM%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22image4.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244854iC9F63C128A206777%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image4.png%22%20alt%3D%22image4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22image5.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244857iD76F771A27DE5A37%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image5.png%22%20alt%3D%22image5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20you%20can%20deploy%20the%20changes.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2042694%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20article%20shows%20the%20steps%20for%20changing%20Azure%20Service%20Fabric%20API%20version%20for%20existing%20and%20while%20creating%20a%20new%20cluster.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2042694%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Service%20Fabric%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jan 07 2021 11:56 PM
Updated by: