Advanced Application Restart - powershell (Azure CLI)












0















Following on from this question:
Powershell for an Advanced Application Restart on an Azure Web App



My command doesn't have any processes returned from the 3rd call to Get-AzureRmResource. I am using Azure Powershell April 2018 (v5.7.0). The first two calls to Get-AzureRmResource work. I simply get an output of



Going to enumerate all processes on 1c0499509f00dc4dde75497ea121d4d32c850ad32xxxxxxxxxxxxxx instance
Going to enumerate all processes on 833b0f35d4116cc4392ec0620f22ce7fa355f801be9a8axxxxxxxxxxxx instance.


Any ideas why this could be?



I have tried:




  • Matching the API version or removing that flag altogether

  • Referencing the RG name and resource name instead of the ID

  • Using a different command to list the processes

  • Running in ISE and vanilla powershell


Using the portal or Kudu console does show me processes for each instance.










share|improve this question




















  • 1





    What does the variable $webSiteInstances contain? Are there two or three instances listed?

    – Theo
    Jan 1 at 14:18











  • Two instances - those listed there

    – DaveDean1
    Jan 4 at 9:58











  • Then possibly the third instance you are expecting does not belong to the same ResourceGroup as the others, or you should rethink the value for ResourceName? (This parameter supports wildcards at the beginning and/or end of the string)

    – Theo
    Jan 4 at 10:20











  • Ah - I mean the 3rd call in the code listing that is linked at the top of the question (which is the call that lists the processes). I'm just expecting processes to be listed for the two instances there

    – DaveDean1
    Jan 4 at 11:26











  • OK, sorry, but then I don't understand what your question is about..

    – Theo
    Jan 4 at 13:21
















0















Following on from this question:
Powershell for an Advanced Application Restart on an Azure Web App



My command doesn't have any processes returned from the 3rd call to Get-AzureRmResource. I am using Azure Powershell April 2018 (v5.7.0). The first two calls to Get-AzureRmResource work. I simply get an output of



Going to enumerate all processes on 1c0499509f00dc4dde75497ea121d4d32c850ad32xxxxxxxxxxxxxx instance
Going to enumerate all processes on 833b0f35d4116cc4392ec0620f22ce7fa355f801be9a8axxxxxxxxxxxx instance.


Any ideas why this could be?



I have tried:




  • Matching the API version or removing that flag altogether

  • Referencing the RG name and resource name instead of the ID

  • Using a different command to list the processes

  • Running in ISE and vanilla powershell


Using the portal or Kudu console does show me processes for each instance.










share|improve this question




















  • 1





    What does the variable $webSiteInstances contain? Are there two or three instances listed?

    – Theo
    Jan 1 at 14:18











  • Two instances - those listed there

    – DaveDean1
    Jan 4 at 9:58











  • Then possibly the third instance you are expecting does not belong to the same ResourceGroup as the others, or you should rethink the value for ResourceName? (This parameter supports wildcards at the beginning and/or end of the string)

    – Theo
    Jan 4 at 10:20











  • Ah - I mean the 3rd call in the code listing that is linked at the top of the question (which is the call that lists the processes). I'm just expecting processes to be listed for the two instances there

    – DaveDean1
    Jan 4 at 11:26











  • OK, sorry, but then I don't understand what your question is about..

    – Theo
    Jan 4 at 13:21














0












0








0








Following on from this question:
Powershell for an Advanced Application Restart on an Azure Web App



My command doesn't have any processes returned from the 3rd call to Get-AzureRmResource. I am using Azure Powershell April 2018 (v5.7.0). The first two calls to Get-AzureRmResource work. I simply get an output of



Going to enumerate all processes on 1c0499509f00dc4dde75497ea121d4d32c850ad32xxxxxxxxxxxxxx instance
Going to enumerate all processes on 833b0f35d4116cc4392ec0620f22ce7fa355f801be9a8axxxxxxxxxxxx instance.


Any ideas why this could be?



I have tried:




  • Matching the API version or removing that flag altogether

  • Referencing the RG name and resource name instead of the ID

  • Using a different command to list the processes

  • Running in ISE and vanilla powershell


Using the portal or Kudu console does show me processes for each instance.










share|improve this question
















Following on from this question:
Powershell for an Advanced Application Restart on an Azure Web App



My command doesn't have any processes returned from the 3rd call to Get-AzureRmResource. I am using Azure Powershell April 2018 (v5.7.0). The first two calls to Get-AzureRmResource work. I simply get an output of



Going to enumerate all processes on 1c0499509f00dc4dde75497ea121d4d32c850ad32xxxxxxxxxxxxxx instance
Going to enumerate all processes on 833b0f35d4116cc4392ec0620f22ce7fa355f801be9a8axxxxxxxxxxxx instance.


Any ideas why this could be?



I have tried:




  • Matching the API version or removing that flag altogether

  • Referencing the RG name and resource name instead of the ID

  • Using a different command to list the processes

  • Running in ISE and vanilla powershell


Using the portal or Kudu console does show me processes for each instance.







azure powershell






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 1 at 14:13









Theo

4,9463520




4,9463520










asked Dec 31 '18 at 16:51









DaveDean1DaveDean1

1113




1113








  • 1





    What does the variable $webSiteInstances contain? Are there two or three instances listed?

    – Theo
    Jan 1 at 14:18











  • Two instances - those listed there

    – DaveDean1
    Jan 4 at 9:58











  • Then possibly the third instance you are expecting does not belong to the same ResourceGroup as the others, or you should rethink the value for ResourceName? (This parameter supports wildcards at the beginning and/or end of the string)

    – Theo
    Jan 4 at 10:20











  • Ah - I mean the 3rd call in the code listing that is linked at the top of the question (which is the call that lists the processes). I'm just expecting processes to be listed for the two instances there

    – DaveDean1
    Jan 4 at 11:26











  • OK, sorry, but then I don't understand what your question is about..

    – Theo
    Jan 4 at 13:21














  • 1





    What does the variable $webSiteInstances contain? Are there two or three instances listed?

    – Theo
    Jan 1 at 14:18











  • Two instances - those listed there

    – DaveDean1
    Jan 4 at 9:58











  • Then possibly the third instance you are expecting does not belong to the same ResourceGroup as the others, or you should rethink the value for ResourceName? (This parameter supports wildcards at the beginning and/or end of the string)

    – Theo
    Jan 4 at 10:20











  • Ah - I mean the 3rd call in the code listing that is linked at the top of the question (which is the call that lists the processes). I'm just expecting processes to be listed for the two instances there

    – DaveDean1
    Jan 4 at 11:26











  • OK, sorry, but then I don't understand what your question is about..

    – Theo
    Jan 4 at 13:21








1




1





What does the variable $webSiteInstances contain? Are there two or three instances listed?

– Theo
Jan 1 at 14:18





What does the variable $webSiteInstances contain? Are there two or three instances listed?

– Theo
Jan 1 at 14:18













Two instances - those listed there

– DaveDean1
Jan 4 at 9:58





Two instances - those listed there

– DaveDean1
Jan 4 at 9:58













Then possibly the third instance you are expecting does not belong to the same ResourceGroup as the others, or you should rethink the value for ResourceName? (This parameter supports wildcards at the beginning and/or end of the string)

– Theo
Jan 4 at 10:20





Then possibly the third instance you are expecting does not belong to the same ResourceGroup as the others, or you should rethink the value for ResourceName? (This parameter supports wildcards at the beginning and/or end of the string)

– Theo
Jan 4 at 10:20













Ah - I mean the 3rd call in the code listing that is linked at the top of the question (which is the call that lists the processes). I'm just expecting processes to be listed for the two instances there

– DaveDean1
Jan 4 at 11:26





Ah - I mean the 3rd call in the code listing that is linked at the top of the question (which is the call that lists the processes). I'm just expecting processes to be listed for the two instances there

– DaveDean1
Jan 4 at 11:26













OK, sorry, but then I don't understand what your question is about..

– Theo
Jan 4 at 13:21





OK, sorry, but then I don't understand what your question is about..

– Theo
Jan 4 at 13:21












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53989669%2fadvanced-application-restart-powershell-azure-cli%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53989669%2fadvanced-application-restart-powershell-azure-cli%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas